Function at 0x4156e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
not eax
push ebx
and eax, 1
mov dword [ebp - 8], ecx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov esi, edx
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x10], ebx
cmp eax, 0x28
jle 0x415727
lea edx, [eax + 7]
and edx, 0xfffffff8
mov dword [ebp + 0x10], edx
jmp 0x41572e
mov dword [ebp + 0x10], 0x28
mov eax, dword [ebp - 0x14]
and eax, 4
mov dword [esi], ebx
mov dword [ebp - 0x20], eax
mov eax, ebx
cmove eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x415854
cmp byte [eax], bl
je 0x415854
mov esi, dword [ecx + 8]
inc esi
lea eax, [esi + esi]
push eax
call fcn.0040aa40
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
je 0x415bbc
mov eax, dword [ebp - 8]
push edi
push esi
mov esi, dword [ebp + 8]
push esi
mov byte [edi], bl
push eax
mov eax, dword [eax + 0x24]
call eax
add esp, 0x10
mov edx, eax
cmp byte [edi], 0
mov ebx, edi
je 0x415796
nop dword [eax]
inc ebx
cmp byte [ebx], 0
jne 0x415790
mov eax, esi
sub ebx, edi
and ebx, 0x3fffffff
cmp byte [eax], 0
je 0x4157ab
inc eax
cmp byte [eax], 0
jne 0x4157a5
sub eax, esi
inc esi
and eax, 0x3fffffff
add esi, eax
mov dword [ebp - 0x10], esi
mov edi, esi
cmp byte [esi], 0
je 0x4157f8
nop
mov eax, edi
inc eax
cmp byte [eax], 0
jne 0x4157c2
sub eax, edi
and eax, 0x3fffffff
lea ecx, [eax + 1]
add ecx, edi
mov eax, ecx
jne 0x4157dc
xor eax, eax
jmp 0x4157ee
cmp byte [ecx], 0
je 0x4157e7
inc eax
cmp byte [eax], 0
jne 0x4157e1
sub eax, ecx
and eax, 0x3fffffff
lea edi, [eax + 1]
add edi, ecx
cmp byte [edi], 0
jne 0x4157c0
sub edi, esi
inc edi
test edx, edx
jne 0x41583d
mov ecx, dword [ebp - 8]
lea eax, [ebx + 8]
cmp eax, dword [ecx + 8]
jle 0x415854
push 0x4801ec
push 0xa2d0
push str.cannot_open_file_at_line__d_of___.10s_
push 0xe
call fcn.0040c910
mov edx, dword [ebp - 4]
add esp, 0x10
mov esi, 0xe
push edx
call fcn.0040ad30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, edx
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 4]
lea eax, [ebx + 0x55]
lea ecx, [edi + eax*2]
add edx, 7
add ecx, eax
and edx, 0xfffffff8
mov eax, dword [ebp + 0x10]
add ecx, edx
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0040aa40
mov esi, eax
add esp, 4
test esi, esi
je 0x415bb0
push dword [ebp - 0x1c]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 8]
lea ecx, [esi + 0xc0]
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0xb0], ecx
add ecx, 0x30
mov dword [esi + 0x3c], ecx
mov eax, dword [eax + 4]
add eax, 7
and eax, 0xfffffff8
add ecx, eax
mov dword [esi + 0x44], ecx
add ecx, dword [ebp + 0x10]
mov dword [esi + 0x40], ecx
add ecx, dword [ebp + 0x10]
mov dword [esi + 0x90], ecx
test edx, edx
je 0x415956
lea eax, [ecx + 1]
push ebx
add eax, edi
push edx
add eax, ebx
push ecx
mov dword [esi + 0x94], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x90]
add esp, 0xc
inc eax
add eax, ebx
push edi
push dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 4]
add esp, 0xc
push ebx
push edi
push dword [esi + 0x94]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x94]
add esp, 0xc
mov dword [ebx + eax], 0x756f6a2d
mov dword [ebx + eax + 4], 0x6c616e72
mov eax, dword [esi + 0x94]
add eax, 9
push ebx
add eax, ebx
push edi
push eax
mov dword [esi + 0xb8], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0xb8]
add esp, 0xc
push edi
mov dword [ebx + eax], 0x6c61772d
call fcn.0040ad30
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [esi], ecx
mov dword [esi + 0x78], ebx
test eax, eax
je 0x415a22
cmp byte [eax], 0
je 0x415a22
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
mov eax, dword [ecx + 0x18]
and ebx, 0x87f7f
push ebx
push dword [esi + 0x3c]
push dword [esi + 0x90]
push ecx
call eax
mov ebx, dword [ebp + 0x10]
mov ecx, eax
add esp, 0x14
mov dword [ebp + 8], ecx
and ebx, 1
test ecx, ecx
jne 0x415a17
test ebx, ebx
jne 0x415a17
cmp byte [esi + 0xc], bl
jne 0x4159d5
mov edx, dword [esi + 0x3c]
mov eax, dword [edx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4159cb
push edx
call eax
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x7c], eax
jmp 0x4159d8
mov eax, 0x200
mov dword [esi + 0x7c], eax
jmp 0x4159d8
mov eax, dword [esi + 0x7c]
cmp eax, 0x20
jae 0x4159e6
mov dword [esi + 0x7c], 0x200
jmp 0x415a17
cmp eax, 0x10000
jbe 0x4159fd
mov dword [esi + 0x7c], 0x10000
mov dword [ebp - 0xc], 0x2000
jmp 0x415a17
cmp eax, 0x400
jbe 0x415a17
cmp eax, 0x2000
jbe 0x415a14
mov dword [ebp - 0xc], 0x2000
jmp 0x415a17
mov dword [ebp - 0xc], eax
xor al, al
mov byte [ebp + 0x13], al
test ecx, ecx
jne 0x415a45
jmp 0x415a2f
mov word [esi + 0xf], 0x401
and ebx, 1
mov byte [ebp + 0x13], 1
push 0xffffffffffffffff
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.00414d40
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x415a70
mov edi, dword [esi + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x415a5d
mov eax, dword [eax + 4]
push edi
call eax
add esp, 4
mov dword [edi], 0
push esi
call fcn.0040ad30
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xb0]
mov edx, 0x415540
mov edi, dword [ebp - 0x20]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
xor eax, eax
test edi, edi
mov dword [ecx + 0x18], 0x50
mov dword [ecx + 0x24], esi
sete al
mov dword [ecx + 0x10], 0x64
mov dword [ecx + 0x1c], eax
xor eax, eax
test edi, edi
cmove eax, edx
test byte [ebp - 0x14], 2
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x20], eax
mov byte [esi + 6], dl
je 0x415ae6
test ebx, ebx
je 0x415ae6
mov al, 1
jmp 0x415ae8
xor al, al
mov cl, byte [ebp + 0x13]
test edi, edi
mov byte [esi + 7], al
setne al
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xe], al
mov al, cl
xor al, 1
mov byte [esi + 0xc], cl
mov byte [esi + 9], al
mov al, cl
xor al, 1
mov byte [esi + 4], cl
add al, al
mov byte [esi + 0x11], cl
mov byte [esi + 0xb], al
mov byte [esi + 0xa], al
mov eax, 0x50
mov byte [esi + 0xd], bl
mov byte [esi + 8], cl
mov word [esi + 0x74], ax
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x8c], 0xffffffff
test cl, cl
jne 0x415b67
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x415b5d
push ecx
call eax
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [esi + 0x7c], eax
jmp 0x415b6a
mov eax, 0x200
mov dword [esi + 0x7c], eax
jmp 0x415b6a
mov eax, dword [esi + 0x7c]
cmp eax, 0x20
jae 0x415b78
mov dword [esi + 0x7c], 0x200
jmp 0x415b86
cmp eax, 0x10000
jbe 0x415b86
mov dword [esi + 0x7c], 0x10000
test edx, edx
jne 0x415b90
mov byte [esi + 5], 2
jmp 0x415b98
test edi, edi
je 0x415b98
mov byte [esi + 5], 4
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xa8], 0x41ae00
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad30
add esp, 4
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret