Function at 0x4582c8
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x1a8
mov ebx, edx
mov dword [ebp - 0x178], eax
mov ecx, dword [0x543b10]
mov eax, dword [eax + 0xc]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x45833d
cmp eax, 1
jne 0x4582fc
and byte [ebx + 0x1a3], 0xdf
jmp 0x45833d
cmp eax, 2
jne 0x45830a
or byte [ebx + 0x1a3], 0x20
jmp 0x45833d
mov eax, 0x23d
test byte [ebx + 0x1a0], 0x20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
jne 0x458327
mov eax, 0x30
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov edx, dword [eax + 0x18]
test edx, edx
je 0x458365
lea eax, [edx - 1]
cmp eax, 2
ja 0x459dea
mov eax, dword [ebp - 0x178]
mov byte [ebx + 0x18e], dl
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4583bd
movsx eax, byte [ebx + 0x18d]
and eax, 0xfffffffe
cmp eax, 2
je 0x4583bd
movzx eax, byte [ebx + 0x1a3]
test al, 8
jne 0x4583bd
test al, 0x10
jne 0x4583bd
movzx eax, byte [ebx + 0x1a8]
test al, 1
jne 0x4583bd
test al, 2
jne 0x4583bd
movzx eax, byte [ebx + 0x1a2]
test eax, 0x80
jne 0x4583bd
cmp byte [ebx + 0x18e], 3
je 0x4583b6
mov byte [ebx + 0x18c], 6
jmp 0x4583bd
mov byte [ebx + 0x18c], 5
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x74]
test eax, 0xfffffffd
je 0x45a3ca
cmp eax, 1
jne 0x4583df
mov byte [ebx + 0x191], 0x27
jmp 0x4583ef
cmp eax, 3
jne 0x459dbb
mov byte [ebx + 0x191], 0x22
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x458460
cmp eax, 2
jne 0x45841f
movzx eax, byte [ebx + 0x1a6]
movzx esi, byte [ebx + 0x1a0]
and eax, 0xfffffffd
and esi, 2
or eax, esi
mov byte [ebx + 0x1a6], al
jmp 0x458460
cmp eax, 1
jne 0x45842d
and byte [ebx + 0x1a6], 0xfd
jmp 0x458460
mov eax, 0x2f1
test byte [ebx + 0x1a0], 0x20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
jne 0x45844a
mov eax, 0x30
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx eax, byte [ebx + 0x1a2]
test eax, 0x80
jne 0x458481
movzx eax, byte [ebx + 0x1a8]
test al, 1
jne 0x458481
test al, 2
je 0x459094
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x1c]
cmp eax, 9
ja 0x458557
movzx eax, byte [eax + 0x500bd4]
add eax, 0x4584a1
jmp eax
push 0xc30
push str.for_open.c
push 2
push 8
call fcn.00480060
add esp, 0x10
mov esi, dword [ebx + 0x124]
cmp dword [0x2df3db4], 0
jne 0x458581
call fcn.004562d0
mov ecx, dword [0x2df3db8]
test ecx, ecx
je 0x4585ae
mov edx, dword [0x2df3dbc]
test edx, edx
jle 0x4585ae
xor eax, eax
cmp esi, dword [eax*4 + 0x2df3b80]
jl 0x4585a9
cmp esi, dword [eax*4 + 0x2df3ca0]
jle 0x4585b4
inc eax
cmp eax, edx
jl 0x458597
mov ecx, dword [0x2df3dc0]
test ecx, ecx
je 0x4588cc
cmp ecx, 1
je 0x4585c8
mov ecx, str.LITTLE_ENDIAN
jmp 0x4585cd
mov ecx, str.BIG_ENDIAN
movzx eax, byte [ebx + 0x1a5]
and eax, 0xffffffdf
or eax, 0x10
mov byte [ebx + 0x190], 0
mov dword [ebp - 0x1b4], eax
mov byte [ebx + 0x1a5], al
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x458604
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4585ef
dec eax
mov esi, eax
xor edi, edi
cmp esi, 0x14
jb 0x458612
mov esi, 0x14
test esi, esi
jle 0x45863d
mov dword [ebp - 0x1a4], ebx
mov ebx, ecx
movsx eax, byte [edi + ebx]
push eax
call fcn.004d646c
mov byte [ebp + edi - 0x19c], al
inc edi
add esp, 4
cmp edi, esi
jl 0x45861e
mov ebx, dword [ebp - 0x1a4]
mov byte [ebp + edi - 0x19c], 0
mov edi, str.NATIVE
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458670
test dl, dl
je 0x45866c
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458670
add edi, 2
add esi, 2
test dl, dl
jne 0x458650
xor eax, eax
jmp 0x458675
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458694
mov eax, dword [ebp - 0x1b4]
and eax, 0xffffffef
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 0
jmp 0x4588cc
mov edi, str.BIG_ENDIAN
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4586bf
test dl, dl
je 0x4586bb
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4586bf
add edi, 2
add esi, 2
test dl, dl
jne 0x45869f
xor eax, eax
jmp 0x4586c4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4586e3
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 0
jmp 0x4588cc
mov edi, str.VAXD
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x45870e
test dl, dl
je 0x45870a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x45870e
add edi, 2
add esi, 2
test dl, dl
jne 0x4586ee
xor eax, eax
jmp 0x458713
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458723
mov byte [ebx + 0x190], 2
jmp 0x4588cc
mov edi, str.VAXG
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x45874e
test dl, dl
je 0x45874a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x45874e
add edi, 2
add esi, 2
test dl, dl
jne 0x45872e
xor eax, eax
jmp 0x458753
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458763
mov byte [ebx + 0x190], 1
jmp 0x4588cc
mov edi, 0x500f1c
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x45878e
test dl, dl
je 0x45878a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x45878e
add edi, 2
add esi, 2
test dl, dl
jne 0x45876e
xor eax, eax
jmp 0x458793
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4587a3
mov byte [ebx + 0x190], 5
jmp 0x4588cc
mov edi, 0x500f20
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4587ce
test dl, dl
je 0x4587ca
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4587ce
add edi, 2
add esi, 2
test dl, dl
jne 0x4587ae
xor eax, eax
jmp 0x4587d3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4587e3
mov byte [ebx + 0x190], 6
jmp 0x4588cc
mov edi, str.LITTLE_ENDIAN
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x45880e
test dl, dl
je 0x45880a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x45880e
add edi, 2
add esi, 2
test dl, dl
jne 0x4587ee
xor eax, eax
jmp 0x458813
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458832
mov eax, dword [ebp - 0x1b4]
and eax, 0xffffffef
mov byte [ebx + 0x190], 0
mov byte [ebx + 0x1a5], al
jmp 0x4588cc
mov edi, 0x500f18
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x45885d
test dl, dl
je 0x458859
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x45885d
add edi, 2
add esi, 2
test dl, dl
jne 0x45883d
xor eax, eax
jmp 0x458862
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45887e
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 3
jmp 0x4588cc
mov edi, str.CRAY
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4588a9
test dl, dl
je 0x4588a5
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4588a9
add edi, 2
add esi, 2
test dl, dl
jne 0x458889
xor eax, eax
jmp 0x4588ae
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458d08
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 4
movsx edx, word [ebx + 0x188]
lea eax, [ebp - 0x17c]
push eax
push 0
add edx, 0xd
push edx
call fcn.004875a0
add esp, 0xc
test eax, eax
jne 0x45908e
movsx ecx, word [ebx + 0x188]
mov eax, ecx
add eax, 0xc
jl 0x458919
xor eax, eax
mov ecx, dword [ebp - 0x17c]
mov byte [ecx + eax], 0
inc eax
movsx ecx, word [ebx + 0x188]
lea edx, [ecx + 0xc]
cmp eax, edx
jle 0x458900
lea esi, [ecx + 0xb]
dec ecx
jl 0x458d28
mov edx, dword [ebx + 0x78]
movsx eax, byte [edx + ecx]
cmp eax, 0x2e
jne 0x458d12
movsx eax, word [ebx + 0x188]
dec eax
cmp ecx, eax
je 0x458d20
mov edi, dword [ebp - 0x17c]
movzx edx, byte [edx + ecx]
push 0x105
mov byte [esi + edi], dl
lea edi, [esi - 0xc]
mov eax, dword [ebp - 0x17c]
mov dword [edi + eax], 0x54524f46
mov ecx, dword [ebp - 0x17c]
mov dword [edi + ecx + 4], 0x4e4f435f
mov eax, dword [ebp - 0x17c]
mov dword [edi + eax + 8], 0x54524556
lea edi, [ebp - 0x12a]
mov edx, dword [edi - 0x52]
push edi
lea eax, [edx + esi - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4589aa
cmp eax, 0x105
jae 0x4589aa
movsx eax, byte [ebp - 0x12a]
jmp 0x4589b3
mov byte [ebp - 0x12a], 0
xor eax, eax
test eax, eax
jne 0x4589f5
mov eax, dword [ebp - 0x17c]
push 0x105
push edi
mov byte [esi + eax], 0x5f
mov edx, dword [ebp - 0x17c]
lea esi, [edx + esi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4589ec
cmp eax, 0x105
jae 0x4589ec
movsx eax, byte [ebp - 0x12a]
jmp 0x4589f5
mov byte [ebp - 0x12a], 0
xor eax, eax
test eax, eax
je 0x458d28
movzx eax, byte [ebx + 0x1a5]
mov ecx, edi
and eax, 0xffffffdf
or eax, 0x10
mov byte [ebx + 0x190], 0
mov dword [ebp - 0x1b4], eax
mov byte [ebx + 0x1a5], al
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x458a36
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x458a21
dec eax
cmp eax, 0x14
jb 0x458a40
mov eax, 0x14
xor esi, esi
test eax, eax
jle 0x458a6d
mov dword [ebp - 0x1a4], ebx
mov ebx, eax
movsx edx, byte [esi + edi]
push edx
call fcn.004d646c
mov byte [ebp + esi - 0x19c], al
inc esi
add esp, 4
cmp esi, ebx
jl 0x458a4e
mov ebx, dword [ebp - 0x1a4]
mov byte [ebp + esi - 0x19c], 0
mov edi, str.NATIVE
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458aa0
test dl, dl
je 0x458a9c
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458aa0
add edi, 2
add esi, 2
test dl, dl
jne 0x458a80
xor eax, eax
jmp 0x458aa5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458ac4
mov eax, dword [ebp - 0x1b4]
and eax, 0xffffffef
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 0
jmp 0x458d28
mov edi, str.BIG_ENDIAN
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458aef
test dl, dl
je 0x458aeb
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458aef
add edi, 2
add esi, 2
test dl, dl
jne 0x458acf
xor eax, eax
jmp 0x458af4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458b13
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 0
jmp 0x458d28
mov edi, str.VAXD
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458b3e
test dl, dl
je 0x458b3a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458b3e
add edi, 2
add esi, 2
test dl, dl
jne 0x458b1e
xor eax, eax
jmp 0x458b43
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458b53
mov byte [ebx + 0x190], 2
jmp 0x458d28
mov edi, str.VAXG
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458b7e
test dl, dl
je 0x458b7a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458b7e
add edi, 2
add esi, 2
test dl, dl
jne 0x458b5e
xor eax, eax
jmp 0x458b83
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458b93
mov byte [ebx + 0x190], 1
jmp 0x458d28
mov edi, 0x500f1c
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458bbe
test dl, dl
je 0x458bba
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458bbe
add edi, 2
add esi, 2
test dl, dl
jne 0x458b9e
xor eax, eax
jmp 0x458bc3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458bd3
mov byte [ebx + 0x190], 5
jmp 0x458d28
mov edi, 0x500f20
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458bfe
test dl, dl
je 0x458bfa
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458bfe
add edi, 2
add esi, 2
test dl, dl
jne 0x458bde
xor eax, eax
jmp 0x458c03
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458c13
mov byte [ebx + 0x190], 6
jmp 0x458d28
mov edi, str.LITTLE_ENDIAN
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458c3e
test dl, dl
je 0x458c3a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458c3e
add edi, 2
add esi, 2
test dl, dl
jne 0x458c1e
xor eax, eax
jmp 0x458c43
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458c62
mov eax, dword [ebp - 0x1b4]
and eax, 0xffffffef
mov byte [ebx + 0x190], 0
mov byte [ebx + 0x1a5], al
jmp 0x458d28
mov edi, 0x500f18
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458c8d
test dl, dl
je 0x458c89
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458c8d
add edi, 2
add esi, 2
test dl, dl
jne 0x458c6d
xor eax, eax
jmp 0x458c92
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458cae
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 3
jmp 0x458d28
mov edi, str.CRAY
lea esi, [ebp - 0x19c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458cd9
test dl, dl
je 0x458cd5
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458cd9
add edi, 2
add esi, 2
test dl, dl
jne 0x458cb9
xor eax, eax
jmp 0x458cde
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458cfa
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 4
jmp 0x458d28
push dword [ebp - 0x17c]
call fcn.00487660
add esp, 4
mov eax, 0x2e
jmp 0x459d9f
cmp eax, 0x5c
je 0x458d20
mov edx, dword [ebp - 0x17c]
mov byte [edx + esi], al
dec esi
dec ecx
jns 0x458923
push dword [ebp - 0x17c]
call fcn.00487660
add esp, 4
test eax, eax
jne 0x45908e
mov eax, dword [ebx + 0x124]
mov esi, str.FORT_CONVERT_d
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x184], eax
call fcn.0045a3e0
lea edi, [ebp - 0x184]
push edi
push 0
push esi
push 0xffffffffffffffff
mov edx, dword [eax]
lea edi, [ebp - 0x16a]
push edi
push dword [eax + 4]
or edx, 1
push edx
call fcn.004db990
add esp, 0x1c
push 0x105
lea esi, [ebp - 0x12a]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x458da5
cmp eax, 0x105
jae 0x458da5
movsx eax, byte [ebp - 0x12a]
jmp 0x458dae
mov byte [ebp - 0x12a], 0
xor eax, eax
test eax, eax
je 0x459094
movzx eax, byte [ebx + 0x1a5]
mov ecx, esi
and eax, 0xffffffdf
or eax, 0x10
mov byte [ebx + 0x190], 0
mov dword [ebp - 0x1b4], eax
mov byte [ebx + 0x1a5], al
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x458def
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x458dda
dec eax
mov edi, eax
xor esi, esi
cmp edi, 0x14
jb 0x458dfd
mov edi, 0x14
test edi, edi
jle 0x458e1b
movsx eax, byte [ebp + esi - 0x12a]
push eax
call fcn.004d646c
mov byte [ebp + esi - 0x25], al
inc esi
add esp, 4
cmp esi, edi
jl 0x458e01
mov byte [ebp + esi - 0x25], 0
mov edi, str.NATIVE
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458e48
test dl, dl
je 0x458e44
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458e48
add edi, 2
add esi, 2
test dl, dl
jne 0x458e28
xor eax, eax
jmp 0x458e4d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458e6c
mov eax, dword [ebp - 0x1b4]
and eax, 0xffffffef
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 0
jmp 0x459094
mov edi, str.BIG_ENDIAN
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458e94
test dl, dl
je 0x458e90
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458e94
add edi, 2
add esi, 2
test dl, dl
jne 0x458e74
xor eax, eax
jmp 0x458e99
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458eb8
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 0
jmp 0x459094
mov edi, str.VAXD
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458ee0
test dl, dl
je 0x458edc
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458ee0
add edi, 2
add esi, 2
test dl, dl
jne 0x458ec0
xor eax, eax
jmp 0x458ee5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458ef5
mov byte [ebx + 0x190], 2
jmp 0x459094
mov edi, str.VAXG
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458f1d
test dl, dl
je 0x458f19
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458f1d
add edi, 2
add esi, 2
test dl, dl
jne 0x458efd
xor eax, eax
jmp 0x458f22
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458f32
mov byte [ebx + 0x190], 1
jmp 0x459094
mov edi, 0x500f1c
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458f5a
test dl, dl
je 0x458f56
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458f5a
add edi, 2
add esi, 2
test dl, dl
jne 0x458f3a
xor eax, eax
jmp 0x458f5f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458f6f
mov byte [ebx + 0x190], 5
jmp 0x459094
mov edi, 0x500f20
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458f97
test dl, dl
je 0x458f93
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458f97
add edi, 2
add esi, 2
test dl, dl
jne 0x458f77
xor eax, eax
jmp 0x458f9c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458fac
mov byte [ebx + 0x190], 6
jmp 0x459094
mov edi, str.LITTLE_ENDIAN
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x458fd4
test dl, dl
je 0x458fd0
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x458fd4
add edi, 2
add esi, 2
test dl, dl
jne 0x458fb4
xor eax, eax
jmp 0x458fd9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458ff8
mov eax, dword [ebp - 0x1b4]
and eax, 0xffffffef
mov byte [ebx + 0x190], 0
mov byte [ebx + 0x1a5], al
jmp 0x459094
mov edi, 0x500f18
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x459020
test dl, dl
je 0x45901c
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x459020
add edi, 2
add esi, 2
test dl, dl
jne 0x459000
xor eax, eax
jmp 0x459025
sbb eax, eax
or eax, 1
test eax, eax
jne 0x459041
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 3
jmp 0x459094
mov edi, str.CRAY
lea esi, [ebp - 0x25]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x459069
test dl, dl
je 0x459065
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x459069
add edi, 2
add esi, 2
test dl, dl
jne 0x459049
xor eax, eax
jmp 0x45906e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458d08
mov eax, dword [ebp - 0x1b4]
add eax, 0x20
mov byte [ebx + 0x1a5], al
mov byte [ebx + 0x190], 4
jmp 0x459094
jne 0x459d9f
cmp dword [ebx + 0x164], 1
je 0x459135
cmp dword [0x2e00b58], 0
je 0x4590cd
movzx eax, byte [ebx + 0x1a8]
mov edx, dword [ebx + 0x16c]
test eax, 0x80
je 0x4590c3
cmp edx, 0xfffffffa
je 0x459135
cmp edx, 1
je 0x459135
cmp edx, 2
je 0x459135
test byte [ebx + 0x1a2], 0x40
je 0x459135
cmp byte [ebx + 0x18c], 0
jne 0x459135
mov esi, dword [ebx + 0x124]
cmp dword [0x2df3da4], 0
jne 0x4590f3
call fcn.00455e10
mov eax, dword [0x2df3da8]
test eax, eax
je 0x45911f
mov ecx, dword [0x2df3dac]
test ecx, ecx
jle 0x45911f
xor edx, edx
cmp esi, dword [edx*4 + 0x2df3940]
jl 0x45911a
cmp esi, dword [edx*4 + 0x2df3a60]
jle 0x459124
inc edx
cmp edx, ecx
jl 0x459108
mov eax, dword [0x2df3db0]
test eax, eax
je 0x459135
mov byte [ebx + 0x18c], al
mov byte [ebx + 0x18e], 3
mov eax, dword [ebp - 0x178]
mov dword [ebx + 0x80], 0
mov eax, dword [eax]
dec eax
cmp eax, 4
ja 0x45930e
movzx eax, word [eax*2 + 0x500be0]
add eax, 0x459160
jmp eax
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x70]
cmp eax, 1
je 0x4593a7
cmp eax, 3
jne 0x459361
test byte [ebx + 0x1a6], 1
jne 0x4593b4
mov dword [ebx + 0x80], str.ACTION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 2
jne 0x4593b4
test byte [ebx + 0x1a1], 0x40
jne 0x459378
test byte [ebx + 0x1a6], 1
je 0x4593b4
mov dword [ebx + 0x80], str.ACTION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test byte [ebx + 0x1a1], 0x40
je 0x459d70
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4593db
mov edx, eax
mov al, byte [ebx + 0x18f]
cmp al, byte [edx + 8]
jne 0x459d41
cmp ecx, dword [ebx + 0x6c]
jne 0x459d41
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0xa4]
cmp eax, 1
je 0x45a3bf
cmp eax, 2
je 0x45a38e
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0xa0]
cmp eax, 1
je 0x45a36f
cmp eax, 2
je 0x45a19e
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x28]
dec eax
cmp eax, 5
ja 0x459520
movzx eax, byte [eax + 0x500bec]
add eax, 0x459438
jmp eax
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x34]
cmp eax, 1
je 0x4595c3
cmp eax, 2
jne 0x459586
movzx eax, byte [ebx + 0x1a2]
test eax, 0x80
jne 0x4595d0
movzx eax, byte [ebx + 0x1a0]
test eax, 0x80
jne 0x4595d0
mov dword [ebx + 0x80], str.FORM
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 4
jne 0x4595d0
test byte [ebx + 0x1a8], 2
jne 0x4595d0
mov dword [ebx + 0x80], str.FORM
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test byte [ebx + 0x1a2], 0x40
je 0x459d12
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x88], 0
je 0x45964e
cmp dword [0x2e00b58], 0
je 0x459629
cmp dword [eax + 0x8c], 0
je 0x45964e
test byte [ebx + 0x1a9], 1
jne 0x45964e
mov dword [ebx + 0x80], str.IOFOCUS
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x232
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x45968c
cmp eax, dword [ebx + 0xf8]
je 0x45968c
mov dword [ebx + 0x80], str.MAXREC
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x90]
cmp eax, 1
je 0x459728
cmp eax, 3
jne 0x4596e2
test byte [ebx + 0x1a6], 1
jne 0x459735
mov dword [ebx + 0x80], str.MODE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 2
jne 0x459735
test byte [ebx + 0x1a1], 0x40
jne 0x4596f9
test byte [ebx + 0x1a6], 1
je 0x459735
mov dword [ebx + 0x80], str.MODE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test byte [ebx + 0x1a1], 0x40
je 0x459ce3
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x54], 0
je 0x459779
test byte [ebx + 0x1a2], 1
je 0x459779
mov dword [ebx + 0x80], str.NOSHARED
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x67
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [eax + 0x40]
cmp eax, 1
je 0x4597ff
cmp eax, 2
jne 0x4597c2
cmp byte [ebx + 0x18d], 2
je 0x459837
mov dword [ebx + 0x80], str.ORGANIZATION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 3
jne 0x459837
cmp byte [ebx + 0x18d], 3
je 0x459837
mov dword [ebx + 0x80], str.ORGANIZATION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp byte [ebx + 0x18d], 1
je 0x459837
mov dword [ebx + 0x80], str.ORGANIZATION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x4598d6
cmp eax, 2
je 0x4598d6
test byte [ebx + 0x1a4], 8
jne 0x459864
xor edi, edi
mov dword [ebp - 0x194], edi
jmp 0x45989e
push 1
xor edx, edx
lea eax, [ebp - 0x198]
push eax
push edx
push dword [ebx + 0x104]
mov dword [eax - 4], edx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
mov dword [ebp - 0x19c], edi
cmp edi, 0xffffffff
je 0x45a106
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x194], eax
movzx eax, byte [ebx + 0x1a3]
test al, 8
jne 0x4598b1
test al, 0x10
je 0x459e79
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x2e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x44], 0
je 0x45991a
test byte [ebx + 0x1a1], 0x40
jne 0x45991a
mov dword [ebx + 0x80], str.READONLY
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x67
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov esi, dword [eax + 0x48]
mov edx, esi
mov ecx, dword [eax + 0x4c]
or edx, ecx
je 0x459961
mov eax, dword [ebx + 0x11c]
sub esi, eax
or esi, ecx
je 0x459961
mov dword [ebx + 0x80], str.RECL
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x4599e4
cmp eax, 2
jne 0x4599ab
cmp byte [ebx + 0x18c], 4
je 0x4599e4
mov dword [ebx + 0x80], str.RECORDTYPE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dl, byte [ebx + 0x18c]
cmp dl, al
je 0x4599e4
mov dword [ebx + 0x80], str.RECORDTYPE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x94]
lea edx, [eax - 1]
cmp edx, 1
jbe 0x45a153
cmp eax, 3
je 0x459ab5
cmp eax, 4
jne 0x459a5d
test byte [ebx + 0x1a2], 1
jne 0x459a2e
movzx eax, byte [ebx + 0x1a8]
test al, 4
jne 0x459a2e
test al, 8
jne 0x459a2e
test al, 0x10
je 0x459a2e
test al, 0x20
je 0x459ae9
mov dword [ebx + 0x80], str.SHARE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 5
jne 0x459ae9
test byte [ebx + 0x1a2], 1
jne 0x459a86
movzx eax, byte [ebx + 0x1a8]
test al, 4
jne 0x459a86
test al, 8
jne 0x459a86
test al, 0x10
jne 0x459a86
test al, 0x20
jne 0x459ae9
mov dword [ebx + 0x80], str.SHARE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test byte [ebx + 0x1a2], 1
jne 0x459cb4
movzx eax, byte [ebx + 0x1a8]
test al, 4
jne 0x459cb4
test al, 8
je 0x459cb4
test al, 0x10
jne 0x459cb4
test al, 0x20
jne 0x459cb4
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x58], 0
je 0x459b2d
test byte [ebx + 0x1a2], 1
jne 0x459b2d
mov dword [ebx + 0x80], str.SHARED
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x67
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [eax + 0x5c]
cmp eax, 1
jbe 0x459b77
cmp eax, 4
je 0x459b77
cmp eax, 3
jne 0x459b48
test byte [ebx + 0x1a2], 4
jne 0x459b77
mov dword [ebx + 0x80], str.STATUS
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x98], 0
je 0x459c37
cmp dword [0x2e00b58], 0
je 0x459c8f
mov eax, dword [ebx + 0x16c]
test eax, 0xfffffffe
je 0x45a143
cmp eax, 2
je 0x45a143
push dword [ebx + 0x104]
call fcn.004cf410
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x459c37
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x459bdc
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x459bc7
dec eax
mov edx, eax
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x9c]
cmp edx, eax
jne 0x459c08
push eax
mov eax, dword [ebp - 0x178]
push dword [eax + 0x98]
push ecx
call fcn.004dba60
add esp, 0xc
test eax, eax
je 0x459c37
mov dword [ebx + 0x80], str.TITLE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov esi, dword [ebp - 0x178]
mov eax, dword [esi + 0xb8]
mov byte [ebx + 0x197], al
mov edx, dword [esi + 0xbc]
mov byte [ebx + 0x199], dl
mov ecx, dword [esi + 0xc0]
mov byte [ebx + 0x19b], cl
mov eax, dword [esi + 0xc4]
mov byte [ebx + 0x19d], al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x234
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebx + 0x80], str.SHARE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebx + 0x80], str.MODE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebx + 0x80], str.FORM
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebx + 0x80], str.ASSOCIATEVARIABLE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebx + 0x80], str.ACTION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, 0x2ef
test byte [ebx + 0x1a0], 0x20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
jne 0x459dd8
mov eax, 0x30
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, 0x2f2
test byte [ebx + 0x1a0], 0x20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
jne 0x459e07
mov eax, 0x30
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.004cf95b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x78
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0x7c]
cmp eax, 1
jne 0x459ed9
test byte [ebx + 0x1a4], 8
je 0x459f39
push 2
xor edx, edx
lea eax, [ebp - 0x1b0]
push eax
push edx
push dword [ebx + 0x104]
mov dword [eax - 4], edx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1b4], eax
cmp eax, 0xffffffff
je 0x459fef
mov eax, dword [ebp - 0x1b0]
mov esi, 0xffffffff
mov dword [ebp - 0x1ac], eax
jmp 0x459f20
cmp eax, 3
jne 0x459f39
xor eax, eax
lea edx, [ebp - 0x1a0]
push eax
push edx
push eax
push dword [ebx + 0x104]
mov dword [edx - 4], eax
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
cmp eax, 0xffffffff
je 0x45a066
mov eax, dword [ebp - 0x1a0]
mov esi, 0xffffffff
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 0x1ac]
sub edx, esi
sub eax, esi
or edx, eax
jne 0x459f4c
jmp 0x45a03d
xor eax, eax
mov esi, 0xffffffff
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], eax
mov edx, edi
mov eax, dword [ebp - 0x194]
sub edx, esi
sub eax, esi
or edx, eax
je 0x45a03d
mov eax, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1a8]
sub eax, dword [ebp - 0x194]
sub edx, edi
or edx, eax
je 0x4598d6
push 0
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 0x1a8]
push eax
push edi
push dword [ebx + 0x104]
mov dword [eax - 4], edi
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, eax
mov dword [ebp - 0x1ac], edx
cmp edx, 0xffffffff
je 0x45a0dd
mov eax, dword [ebp - 0x1a8]
sub edx, esi
sub eax, esi
or edx, eax
je 0x45a0b4
mov dword [ebx + 0x80], str.POSITION
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
mov eax, 0x68
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45a01b
mov esi, 0xffffffff
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], esi
jmp 0x459f20
mov eax, dword [ebp - 0x1b4]
mov esi, 0xffffffff
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], edx
jmp 0x459f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
jmp 0x459e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45a092
mov esi, 0xffffffff
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], esi
jmp 0x459f20
mov eax, dword [ebp - 0x1a4]
mov esi, 0xffffffff
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], edx
jmp 0x459f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
jmp 0x459e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45a0f5
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1a8], esi
jmp 0x45a0b4
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1a8]
jmp 0x459fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45a12c
mov edi, 0xffffffff
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x194], edi
jmp 0x45989e
mov eax, dword [ebp - 0x198]
mov edi, dword [ebp - 0x19c]
mov dword [ebp - 0x194], eax
jmp 0x45989e
call fcn.004cf430
push eax
call fcn.004cf410
jmp 0x459bbc
test byte [ebx + 0x1a2], 1
je 0x45a177
movzx eax, byte [ebx + 0x1a8]
test al, 4
je 0x45a177
test al, 8
jne 0x45a177
test al, 0x10
jne 0x45a177
test al, 0x20
je 0x459ae9
mov dword [ebx + 0x80], str.SHARE
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
jmp 0x45918f
test byte [ebx + 0x1a9], 0x40
jne 0x459417
test byte [ebx + 0x1ac], 4
jne 0x459417
mov ecx, dword [ebx + 0x78]
mov dword [ebp - 0x1a8], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x45a1d8
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x45a1c3
dec eax
mov edx, eax
dec edx
mov esi, edx
js 0x45a1f1
movsx eax, byte [edx + ecx]
dec edx
cmp eax, 0x2e
je 0x45a360
test edx, edx
jns 0x45a1df
xor eax, eax
mov edx, esi
and edx, 0xfffffffe
cmp edx, 2
je 0x45a205
lea edx, [esi - 5]
cmp edx, 1
ja 0x45a272
inc esi
lea edx, [ebp - 0x174]
push esi
push dword [ebp - 0x1a8]
push edx
mov dword [edx - 0x3c], eax
call fcn.004dbae0
mov eax, dword [ebp - 0x1b0]
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1a4], ebx
mov byte [ebp + esi - 0x174], 0
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], esi
lea esi, [ebp - 0x174]
mov ebx, edi
lea eax, [ebx + 0x500700]
push eax
push esi
call fcn.004dbc3d
add esp, 8
test eax, eax
je 0x45a2af
inc edi
add ebx, 0x10
cmp edi, 0x11
jl 0x45a24f
mov ebx, dword [ebp - 0x1a4]
test byte [ebx + 0x1a3], 8
je 0x45a288
test byte [ebx + 0x1a0], 4
jne 0x459417
mov dword [ebx + 0x80], str.BUFFERED
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
jmp 0x45918f
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], ebx
mov esi, dword [ebp - 0x1ac]
mov ebx, dword [ebp - 0x1a4]
test eax, eax
je 0x45a322
mov eax, dword [ebp - 0x1a8]
movsx eax, byte [eax]
add eax, 0xffffffbd
cmp eax, 0x32
ja 0x45a322
movzx eax, byte [eax + 0x500bf4]
add eax, 0x45a272
jmp eax
mov edi, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x1b4]
mov byte [esi + edi], 0
movzx eax, byte [ebx + 0x1aa]
movzx esi, byte [edx + 0x50070c]
and eax, 0xfffffffe
and esi, 1
or eax, esi
mov byte [ebx + 0x1aa], al
cmp byte [edx + 0x50070a], 0xff
je 0x45a272
jmp 0x459417
dec esi
xor eax, eax
cmp edx, esi
mov esi, edx
setl al
jmp 0x45a1f3
test byte [ebx + 0x1a9], 0x40
jne 0x45a288
test byte [ebx + 0x1ac], 4
jne 0x45a288
jmp 0x459417
cmp dword [ebx + 0x20], 0
jne 0x4593f9
mov dword [ebx + 0x80], str.ASYNCHRONOUS
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x459e19
jmp 0x45918f
cmp dword [ebx + 0x20], 0
jne 0x45a398
jmp 0x4593f9
mov byte [ebx + 0x191], 0
jmp 0x4583ef