Function at 0x437900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
push 0x12
push dword [ebp + 8]
push eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.00438980
add esp, 0x10
mov edi, eax
test edi, edi
je 0x437991
mov edx, dword [ebp + 0x10]
movzx eax, dl
test al, 1
je 0x437980
shr edx, 0x18
movzx edx, dl
test edx, 0x80
je 0x437970
lea edx, [ebp + 0x17]
and edx, 0xfffffffc
lea eax, [edx + 4]
test byte [eax - 4], 0x10
je 0x437970
add edx, 7
and edx, 0xfffffffc
mov eax, dword [edx]
add edx, 7
and edx, 0xfffffffc
cmp byte [eax], 0x38
mov ebx, dword [edx]
jne 0x437970
cmp byte [eax + 2], 0x4e
je 0x437e41
movzx eax, di
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push str.unknown
push esi
push 2
push edi
call fcn.00424130
add esp, 0x10
mov edi, dword [ebp - 0x10]
xor eax, eax
mov dword [edi + 0x84], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xf4], eax
mov eax, dword [ebp - 0x10]
movzx edx, byte [ebp + 0x13]
test edx, 0x80
mov ecx, dword [eax + 0xb8]
mov ebx, dword [eax + 0xbc]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ebx
je 0x437a35
lea ecx, [ebp + 0x17]
and ecx, 0xfffffffc
lea eax, [ecx + 4]
mov edx, dword [eax - 4]
test dl, 0x20
je 0x4379e7
mov eax, dword [ebp - 0x10]
or byte [eax + 0x173], 0x40
test dl, 0x10
je 0x437a35
add ecx, 7
and ecx, 0xfffffffc
mov ebx, dword [ecx]
add ecx, 7
and ecx, 0xfffffffc
movsx eax, byte [ebx]
cmp eax, 0x38
mov edi, dword [ecx]
je 0x4386b9
cmp eax, 0xb
je 0x4384b6
cmp eax, 0x38
je 0x437f1a
cmp eax, 1
je 0x437a35
push 0x278
push str.for_endfile.c
push 2
push 8
call fcn.00424130
add esp, 0x10
mov eax, dword [ebp - 0x10]
test byte [eax + 0x169], 0x20
jne 0x437ab4
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4386e8
test byte [edx + 0x44], 2
je 0x437a8a
mov eax, 0x25e
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x437a78
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x25e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 0x25e
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x138], 1
jne 0x437b30
mov edx, dword [eax + 0x18]
test edx, edx
je 0x438707
test byte [edx + 0x44], 2
je 0x437b06
mov eax, 0x24b
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x437af4
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x24b
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 0x24b
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
test byte [eax + 0x16c], 0x20
je 0x437b4c
movzx ebx, byte [eax + 0x168]
and ebx, 0x10
shr ebx, 3
dec ebx
jmp 0x437dbe
cmp byte [eax + 0x154], 5
je 0x4387a7
mov ebx, dword [eax + 0x90]
push 1
mov ecx, dword [eax + 0xe4]
lea edx, [ebp - 0x20]
push edx
xor eax, eax
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x438776
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x10]
mov edx, 2
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0xe4]
mov dword [esp + 8], ecx
call fcn.004387d0
mov dword [ebp - 0x40], esi
mov esi, eax
mov edi, dword [ebp - 0x10]
add esi, 0xffffffff
mov ecx, edx
adc ecx, 0xffffffff
cmp dword [edi + 0x138], 7
je 0x437bc8
mov esi, eax
mov eax, ebx
je 0x437bce
mov ecx, edx
cdq
mov eax, dword [ebp - 0x14]
sub eax, ebx
mov dword [ebp - 0x4c], esi
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
sbb ebx, edx
sub eax, dword [ebp - 0x4c]
mov edx, ebx
mov esi, dword [ebp - 0x40]
sbb edx, ecx
jl 0x437bfe
movzx ebx, byte [edi + 0x168]
and ebx, 0x10
shr ebx, 3
dec ebx
jmp 0x437da3
mov edi, dword [0x4e1a70]
mov dword [ebp - 0x3c], edi
mov eax, dword [0x4e1a74]
mov dword [ebp - 0x38], eax
mov dl, byte [0x4e1a78]
mov byte [ebp - 0x34], dl
mov edi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp - 0x2b], al
mov edx, 0x1a
mov byte [ebp - 0x29], al
mov eax, 0xa
mov byte [ebp - 0x31], al
mov byte [ebp - 0x1b], al
movzx eax, byte [edi + 0x16a]
test eax, 0x80
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2a], 0x1a
mov byte [ebp - 0x43], 0xa
mov byte [ebp - 0x42], dl
mov byte [ebp - 0x41], 0xd
mov byte [ebp - 0x33], dl
mov byte [ebp - 0x32], 0xd
mov byte [ebp - 0x1c], 0x1a
mov byte [ebp - 0x1a], 0x1a
mov byte [ebp - 0x19], 0xd
je 0x437c81
cmp byte [edi + 0x154], 4
je 0x438738
cmp byte [edi + 0x154], 3
je 0x438726
test al, 0x40
je 0x437da1
movsx eax, byte [edi + 0x154]
cmp eax, 5
je 0x437ca8
cmp eax, 7
je 0x437ca8
cmp eax, 8
je 0x437ca8
cmp eax, 6
jne 0x437da1
cmp byte [edi + 0x156], 1
je 0x43874a
cmp eax, 7
je 0x437ce6
cmp eax, 6
jne 0x437cce
mov dword [ebp - 0x30], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x437cf3
cmp eax, 8
jne 0x437da1
mov dword [ebp - 0x30], 3
lea eax, [ebp - 0x33]
mov dword [ebp - 0x28], eax
jmp 0x437cf3
mov dword [ebp - 0x30], 2
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x437da1
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
sbb ecx, ebx
sub edx, eax
mov eax, 0
sbb eax, ecx
jl 0x437d1b
or edx, eax
jne 0x437da1
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0xe4]
mov dword [esp + 8], ebx
call fcn.004387d0
push 0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
lea edx, [ebp - 0x4c]
push edx
push dword [ecx + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437d5e
mov dword [ebp - 0x40], 0
xor eax, eax
jmp 0x437d61
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x30]
jne 0x437d9a
push dword [ebp - 0x30]
push dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
push eax
call fcn.004be910
add esp, 0xc
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x437da1
test edi, edi
je 0x437d93
test byte [edi + 0x168], 0x10
je 0x437d93
mov ebx, 1
jmp 0x437da3
mov ebx, 0xffffffff
jmp 0x437da3
mov edi, dword [ebp - 0x10]
xor ebx, ebx
jmp 0x437da3
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xe4]
call fcn.004387d0
push esi
call fcn.00439560
add esp, 4
test eax, eax
je 0x437e32
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x43875c
test byte [edx + 0x44], 2
je 0x437e0d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x437e00
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00438830
add esp, 8
test eax, eax
jne 0x437970
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov dword [ecx + 0x84], edx
mov esi, dword [ebp - 0x50]
movzx ecx, byte [ebp + 0x10]
and ecx, 1
mov dword [esi + 0xf4], edx
mov esi, dword [ebp - 0x50]
movzx eax, byte [esi + 0x16c]
and eax, 0xfffffffe
or eax, ecx
mov byte [esi + 0x16c], al
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebx]
mov dword [ecx + 0xf4], eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebx + 4]
mov dword [eax + 0x84], ebx
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x437f00
test byte [eax + 0x44], 2
je 0x437edb
mov dword [eax + 0x38], edi
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edi
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x437ecc
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x64], edx
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edi
movzx eax, byte [ecx + 0x16c]
push edi
and eax, 7
push eax
push 0xffffffffffffffff
push ecx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ecx
push edi
push edi
push 0
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 2], 6
je 0x4383b6
cmp byte [ebx + 2], 0x52
je 0x4382e6
cmp byte [ebx + 2], 0x3b
je 0x4381ee
cmp byte [ebx + 2], 0x3c
je 0x4380e8
cmp byte [ebx + 2], 0x51
je 0x438018
cmp byte [ebx + 2], 0x53
jne 0x437a1f
push 3
lea eax, [ebp - 0x50]
push eax
push 0x53
push dword [edi]
push dword [edi + 4]
call fcn.0042d680
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x437f9e
movzx eax, byte [edx + 0x163]
mov byte [edx + 0x164], al
mov edi, dword [ebp - 0x10]
or byte [edi + 0x173], 0x20
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov byte [ecx + 0x163], dl
movsx eax, byte [ebx + 4]
jmp 0x437a1a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x437ffe
test byte [ecx + 0x44], 2
je 0x437fd9
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x437fcc
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x51
push dword [edi]
push dword [edi + 4]
call fcn.0042d680
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x43806e
add ebx, 4
add edi, 8
movzx eax, byte [edx + 0x15f]
mov byte [edx + 0x160], al
mov ecx, dword [ebp - 0x10]
or byte [ecx + 0x173], 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov byte [eax + 0x15f], dl
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x437f4c
jmp 0x437a1a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4380ce
test byte [ecx + 0x44], 2
je 0x4380a9
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x43809c
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x3c
push dword [edi]
push dword [edi + 4]
call fcn.0042d680
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x438174
movzx ecx, byte [edx + 0x16e]
mov eax, ecx
shr ecx, 1
and eax, 0xfffffffb
and ecx, 1
shl ecx, 2
or eax, ecx
mov byte [edx + 0x16e], al
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 8
cmp dword [ebp - 0x50], 2
jne 0x438153
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ebp + 0x12]
shr edx, 2
and edx, 1
movzx eax, byte [ecx + 0x16e]
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x16e], al
jmp 0x43815d
mov eax, dword [ebp - 0x10]
and byte [eax + 0x16e], 0xfd
add ebx, 4
add edi, 8
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x437f42
jmp 0x437a1a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4381d4
test byte [ecx + 0x44], 2
je 0x4381af
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x4381a2
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x3b
push dword [edi]
push dword [edi + 4]
call fcn.0042d680
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x43826c
movzx eax, byte [edx + 0x159]
mov byte [edx + 0x15a], al
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 4
mov eax, dword [ebp - 0x50]
cmp eax, 2
je 0x43824b
cmp eax, 1
jne 0x43823a
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0x27
jmp 0x438255
cmp eax, 3
jne 0x43824b
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0x22
jmp 0x438255
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0
add ebx, 4
add edi, 8
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x437f38
jmp 0x437a1a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4382cc
test byte [ecx + 0x44], 2
je 0x4382a7
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x43829a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x52
push dword [edi]
push dword [edi + 4]
call fcn.0042d680
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x43833c
add ebx, 4
add edi, 8
movzx eax, byte [edx + 0x161]
mov byte [edx + 0x162], al
mov ecx, dword [ebp - 0x10]
or byte [ecx + 0x173], 2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov byte [eax + 0x161], dl
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x437f2e
jmp 0x437a1a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x43839c
test byte [ecx + 0x44], 2
je 0x438377
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x43836a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 6
push dword [edi]
push dword [edi + 4]
call fcn.0042d680
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x43843c
movzx ecx, byte [edx + 0x16b]
mov eax, ecx
shr ecx, 5
and eax, 0xffffffbf
and ecx, 1
shl ecx, 6
or eax, ecx
mov byte [edx + 0x16b], al
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 1
mov eax, dword [ebp - 0x50]
cmp eax, 1
jne 0x43840d
mov eax, dword [ebp - 0x10]
and byte [eax + 0x16b], 0xdf
jmp 0x438425
mov edx, dword [ebp - 0x10]
cmp eax, 2
jne 0x43841e
or byte [edx + 0x16b], 0x20
jmp 0x438425
and byte [edx + 0x16b], 0xdf
add ebx, 4
add edi, 8
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x437f24
jmp 0x437a1a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x43849c
test byte [ecx + 0x44], 2
je 0x438477
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x43846a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 2], 0x4f
jne 0x437a1f
mov eax, dword [ebp - 0x10]
test byte [eax + 0x16b], 4
jne 0x4385bc
mov ecx, dword [eax + 0x18]
test byte [eax + 0x169], 0x20
jne 0x43854c
test ecx, ecx
je 0x4385f0
test byte [ecx + 0x44], 2
je 0x438522
mov edx, 0x6d
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x438510
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 0x6d
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x43860f
test byte [ecx + 0x44], 2
je 0x438595
mov dword [ecx + 0x38], 0x6e
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x438583
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx edx, byte [eax + 0x16c]
push 0x6e
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
add edx, 0xffffffff
mov ecx, dword [edi + 4]
adc ecx, 0xffffffff
add edi, 8
mov dword [eax + 0xb0], edx
mov dword [eax + 0xb4], ecx
xor eax, eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0xb4]
sub ecx, eax
jl 0x43862b
add ebx, 4
movsx eax, byte [ebx]
jmp 0x437a11
push eax
mov edx, 0x6d
push edx
push edx
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
push 0x1f
push 0x6e
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x18]
test eax, eax
je 0x43869a
test byte [eax + 0x44], 2
je 0x438670
mov edx, 0x6f
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x43865e
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6f
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x6f
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.0043e320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
mov eax, 0x6f
push eax
push eax
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 2], 0x4e
jne 0x437f1a
mov edx, dword [ebp - 0x10]
add ebx, 4
mov eax, dword [edi]
mov dword [edx + 0xf4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 4]
add edi, 8
mov dword [eax + 0x84], ecx
movsx eax, byte [ebx]
jmp 0x437a08
push eax
mov edx, 0x25e
push edx
push edx
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x24b
push edx
push edx
push 1
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
jmp 0x437cf3
mov dword [ebp - 0x30], 9
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
jmp 0x437cf3
mov dword [ebp - 0x30], 3
lea eax, [ebp - 0x43]
mov dword [ebp - 0x28], eax
jmp 0x437cf3
push ecx
push eax
push eax
push 0
call fcn.00422060
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x438796
mov eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
jmp 0x437b90
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jmp 0x437b90
test byte [eax + 0x16d], 2
je 0x4387bb
mov ebx, dword [eax + 0x44]
sub ebx, dword [eax + 0x3c]
jmp 0x437b5f
xor ebx, ebx
jmp 0x437b5f