Function at 0x41d8e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 4], 0x49b09b
mov dword [esp], str.BFD_header_file_version__s_n
call sub.msvcrt.dll_printf
mov dword [esp], 0
call fcn.00488080
mov edi, eax
mov eax, dword [0x492afc]
mov esi, dword [eax]
test esi, esi
je 0x41da74
mov dword [esp + 0x20], 4
mov dword [esp + 0x1c], 1
mov eax, dword [esi]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00425450
mov edx, str.big_endian
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41d954
cmp eax, 1
mov edx, str.endianness_unknown
mov eax, str.little_endian
cmove edx, eax
mov ecx, dword [esi + 0xc]
mov eax, str.big_endian
test ecx, ecx
je 0x41d970
cmp ecx, 1
mov eax, str.endianness_unknown
mov ecx, str.little_endian
cmove eax, ecx
mov ecx, dword [esi]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], str._s_n__header__s__data__s__n
mov dword [esp + 4], ecx
call sub.msvcrt.dll_printf
test ebx, ebx
je 0x41da62
mov dword [esp + 4], 1
mov ebp, 2
mov dword [esp], ebx
call fcn.004230b0
test eax, eax
jne 0x41d9b8
jmp 0x41da44
add ebp, 1
cmp ebp, 0x5c
je 0x41d9fe
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x150]
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], ebx
call eax
test eax, eax
je 0x41d9b0
mov dword [esp], ebp
add ebp, 1
mov dword [esp + 4], 0
call fcn.004237f0
mov dword [esp], str.___s_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
cmp ebp, 0x5c
jne 0x41d9b8
mov dword [esp], ebx
call fcn.004255b0
mov ecx, dword [esp + 0x20]
mov eax, dword [0x492afc]
add dword [esp + 0x20], 4
mov esi, dword [eax + ecx]
test esi, esi
jne 0x41d928
mov dword [esp], edi
call sub.msvcrt.dll__unlink
mov dword [esp], edi
call fcn.0048d280
mov ebx, dword [esp + 0x1c]
mov eax, 1
test ebx, ebx
jne 0x41da84
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00420a00
cmp eax, 5
je 0x41d9fe
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0041d560
mov dword [esp + 0x1c], 0
jmp 0x41d9fe
mov dword [esp], edi
call fcn.0041d560
mov dword [esp + 0x1c], 0
jmp 0x41da06
mov dword [esp], edi
call sub.msvcrt.dll__unlink
mov dword [esp], edi
call fcn.0048d280
mov dword [esp], str.COLUMNS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41ddd8
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test eax, eax
mov dword [esp + 0x3c], eax
je 0x41ddd8
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
mov esi, dword [0x492afc]
lea ecx, [eax*4]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x41ddc5
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebp, dword [esp + 0x3c]
lea ebx, [eax + 0x10]
mov eax, dword [esp + 0x28]
add eax, 1
cmp ebx, ebp
mov edi, eax
mov dword [esp + 0x20], eax
jge 0x41db30
mov eax, dword [esp + 0x2c]
mov eax, dword [esi + eax + 4]
test eax, eax
jne 0x41db1a
jmp 0x41db30
add edi, 1
mov eax, dword [esi + edi*4]
test eax, eax
je 0x41db2c
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ebx, [ebx + eax + 1]
cmp ebx, ebp
jl 0x41db10
mov dword [esp + 0x20], edi
mov dword [esp + 8], 0x49b0fc
mov dword [esp + 4], 0xf
mov dword [esp], str._n_s
call sub.msvcrt.dll_printf
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
jle 0x41ddb5
mov eax, dword [0x492afc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + ecx]
test eax, eax
je 0x41dda7
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x34], ecx
mov esi, ecx
jmp 0x41db94
mov eax, dword [0x492afc]
mov eax, dword [eax + esi]
add esi, 4
test eax, eax
je 0x41dbad
mov eax, dword [eax]
add ebx, 1
mov dword [esp], 0x49b103
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
cmp ebx, edi
jne 0x41db85
mov dword [esp], 0xa
call sub.msvcrt.dll_putchar
mov dword [esp], 0
call fcn.00488080
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
jmp 0x41dbf0
add dword [esp + 0x1c], 1
cmp dword [esp + 0x1c], 0x5c
je 0x41dd72
mov eax, dword [esp + 0x1c]
mov edi, 0x49b107
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004237f0
mov ecx, 9
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41dbe0
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004237f0
mov dword [esp + 4], 0xe
mov dword [esp], str._s
mov dword [esp + 8], eax
call sub.msvcrt.dll_printf
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x20], edi
jle 0x41dd56
mov eax, dword [0x492afc]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [eax + ecx]
test ebx, ebx
je 0x41dd56
mov ebp, dword [esp + 0x34]
jmp 0x41dcc8
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x150]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], esi
call eax
test eax, eax
je 0x41dd14
mov eax, dword [ebx]
mov dword [esp], 0x49b103
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov dword [esp], esi
add edi, 1
call fcn.004255b0
cmp edi, dword [esp + 0x20]
je 0x41dd56
mov eax, dword [0x492afc]
mov ebx, dword [eax + ebp]
add ebp, 4
test ebx, ebx
je 0x41dd56
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00425450
test eax, eax
mov esi, eax
je 0x41dd02
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004230b0
test eax, eax
jne 0x41dc68
call fcn.00420a00
cmp eax, 5
je 0x41dd14
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0041d560
mov dword [esp + 0x30], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
test eax, eax
je 0x41dd35
mov ebx, eax
mov dword [esp], 0x2d
call sub.msvcrt.dll_putchar
sub ebx, 1
jne 0x41dd24
mov dword [esp], 0x20
call sub.msvcrt.dll_putchar
test esi, esi
jne 0x41dca0
add edi, 1
cmp edi, dword [esp + 0x20]
jne 0x41dcb5
mov dword [esp], 0xa
call sub.msvcrt.dll_putchar
add dword [esp + 0x1c], 1
cmp dword [esp + 0x1c], 0x5c
jne 0x41dbf0
mov edi, dword [esp + 0x24]
mov dword [esp], edi
call sub.msvcrt.dll__unlink
mov dword [esp], edi
call fcn.0048d280
mov ecx, dword [esp + 0x30]
mov eax, 0
test ecx, ecx
cmovne eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jmp 0x41dabc
mov eax, ecx
add eax, 4
mov dword [esp + 0x34], eax
jmp 0x41dbad
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x34], eax
jmp 0x41dbad
mov edx, dword [esp + 0x38]
xor eax, eax
test edx, edx
sete al
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x3c], 0x50
jmp 0x41daac