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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x474194]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x30], eax
xor eax, eax
mov ebx, edx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x418b54
mov dword [esp + 0xc], eax
cmp byte [esi], al
jne 0x418b5c
mov dword [esp + 0xc], 1
cmp esi, eax
je 0x418b6e
push 9
mov edi, str.:memory:
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x418b86
cmp dword [esp + 0xc], eax
je 0x418b7a
cmp byte [ebx + 0x3f], 2
je 0x418b86
test byte [ebp + 0x14], 0x80
jne 0x418b86
mov dword [esp + 0x28], eax
jmp 0x418b92
or dword [ebp + 0x10], 2
mov dword [esp + 0x28], 1
test dword [ebp + 0x14], 0x100
je 0x418bb7
cmp dword [esp + 0x28], eax
jne 0x418ba7
cmp dword [esp + 0xc], eax
je 0x418bb7
mov eax, dword [ebp + 0x14]
and eax, 0xfffffeff
or eax, 0x200
mov dword [ebp + 0x14], eax
push 0x2c
call fcn.0040c439
mov edi, eax
pop ecx
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x418bd1
push 7
pop eax
jmp 0x419099
cmp dword [esp + 0xc], 0
mov byte [edi + 8], 0
mov dword [edi], ebx
mov dword [edi + 0x1c], edi
mov dword [edi + 0x20], 1
jne 0x418d6d
cmp dword [esp + 0x28], 0
je 0x418bfd
test byte [ebp + 0x14], 0x40
je 0x418d6d
test dword [ebp + 0x14], 0x20000
je 0x418d6d
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 8]
inc esi
push esi
call fcn.0040c05d
pop ecx
mov dword [esp + 0xc], eax
mov byte [edi + 9], 1
test eax, eax
jne 0x418c36
push 7
pop esi
push edi
call fcn.0040c26b
pop ecx
mov eax, esi
jmp 0x419099
cmp dword [esp + 0x28], 0
je 0x418c65
mov ecx, dword [esp + 0x1c]
call fcn.0040ddf8
inc eax
push eax
push ecx
push dword [esp + 0x14]
call fcn.004562c0
add esp, 0xc
xor esi, esi
cmp dword [0x475174], esi
jne 0x418c95
mov dword [esp + 0x20], esi
jmp 0x418ca2
mov eax, dword [esp + 0xc]
push eax
push esi
push dword [esp + 0x24]
mov byte [eax], 0
mov eax, dword [esp + 0x30]
push eax
call dword [eax + 0x24]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x418c55
push dword [esp + 0xc]
call fcn.0040c26b
mov esi, dword [esp + 0x18]
pop ecx
jmp 0x418c28
push 4
call dword [0x4751b8]
pop ecx
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
call fcn.0040bc17
pop ecx
cmp dword [0x475174], esi
jne 0x418cba
mov dword [esp + 0x30], esi
jmp 0x418cc7
push 2
call dword [0x4751b8]
pop ecx
mov dword [esp + 0x30], eax
push dword [esp + 0x30]
call fcn.0040bc17
mov esi, dword [0x477764]
pop ecx
test esi, esi
je 0x418d51
mov ebx, dword [esi]
mov eax, dword [ebx + 0xa8]
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x418d07
test dl, dl
je 0x418d03
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x418d07
add ecx, 2
add eax, 2
test dl, dl
jne 0x418ce7
xor eax, eax
jmp 0x418d0c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418d18
mov eax, dword [esp + 0x24]
cmp dword [ebx], eax
je 0x418d21
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x418cdb
jmp 0x418d4d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
dec eax
js 0x418d47
mov ecx, dword [ecx + 0x10]
mov edx, eax
add edx, edx
lea ecx, [ecx + edx*8 + 4]
mov edx, dword [ecx]
test edx, edx
je 0x418d41
cmp dword [edx + 4], esi
je 0x418d88
sub ecx, 0x10
dec eax
jns 0x418d36
mov dword [edi + 4], esi
inc dword [esi + 0x40]
mov ebx, dword [esp + 0x18]
push dword [esp + 0x30]
call fcn.0040bc3d
pop ecx
push dword [esp + 0xc]
call fcn.0040c26b
pop ecx
test esi, esi
jne 0x418f64
push 0x54
call fcn.0040c439
mov esi, eax
pop ecx
test esi, esi
jne 0x418dad
mov dword [esp + 0x14], 7
jmp 0x418fde
push dword [esp + 0x30]
call fcn.0040bc3d
pop ecx
push dword [esp + 0x20]
call fcn.0040bc3d
pop ecx
push dword [esp + 0xc]
call fcn.0040c26b
pop ecx
push 0x13
jmp 0x418c27
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x24]
push esi
push dword [esp + 0x34]
call fcn.00414746
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x418fcf
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x28]
mov eax, dword [esi]
mov dword [eax + 0x80], edx
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 0x84], ecx
call fcn.00413f3f
mov ebx, dword [esi]
and dword [esp + 0x24], 0
push 0x64
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00456240
mov eax, dword [ebx + 0x3c]
add esp, 0xc
cmp dword [eax], 0
je 0x418e2c
mov ecx, dword [eax]
push 0
push 0
push 0x64
lea edx, [esp + 0x44]
push edx
push eax
call dword [ecx + 8]
add esp, 0x14
cmp eax, 0x20a
jne 0x418e30
xor eax, eax
jmp 0x418e30
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x418fcf
mov al, byte [ebp + 0x10]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esi]
lea ecx, [eax + 0xb0]
mov dword [eax + 0xb4], esi
mov eax, dword [eax + 0x3c]
mov dword [ecx], fcn.00418acc
cmp dword [eax], ebx
je 0x418e72
mov edx, dword [eax]
push ecx
push 0xf
push eax
call dword [edx + 0x28]
add esp, 0xc
mov dword [edi + 4], esi
mov edi, dword [esi]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp byte [edi + 0xd], bl
je 0x418e87
or word [esi + 0x16], 1
movzx eax, byte [esp + 0x49]
movzx ecx, byte [esp + 0x48]
shl eax, 8
or eax, ecx
shl eax, 8
lea ebx, [esi + 0x20]
mov dword [ebx], eax
cmp eax, 0x200
jb 0x418ee4
cmp eax, 0x10000
ja 0x418ee4
lea ecx, [eax - 1]
test eax, ecx
jne 0x418ee4
mov al, byte [esp + 0x4c]
or word [esi + 0x16], 2
lea ecx, [esp + 0x6c]
mov byte [esp + 0x13], al
call fcn.0040e943
test eax, eax
setne al
lea ecx, [esp + 0x78]
mov byte [esi + 0x11], al
call fcn.0040e943
test eax, eax
setne al
mov byte [esi + 0x12], al
jmp 0x418efc
xor eax, eax
mov dword [ebx], eax
cmp dword [esp + 0x1c], eax
je 0x418ef8
cmp dword [esp + 0x28], eax
jne 0x418ef8
mov word [esi + 0x11], ax
mov byte [esp + 0x13], al
movzx eax, byte [esp + 0x13]
push eax
push ebx
mov dword [esp + 0x24], eax
call fcn.00413f93
pop ecx
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x418fcb
mov eax, dword [ebx]
sub eax, dword [esp + 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 9], 0
je 0x418f5c
xor edi, edi
mov dword [esi + 0x40], 1
cmp dword [0x475174], edi
jne 0x418f99
xor ebx, ebx
push ebx
call fcn.0040bc17
mov eax, dword [0x477764]
pop ecx
push ebx
mov dword [esi + 0x44], eax
mov dword [0x477764], esi
call fcn.0040bc3d
pop ecx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
cmp byte [edi + 9], 0
je 0x419038
xor edx, edx
cmp dword [ebx + 0x14], edx
jle 0x419038
mov ecx, dword [ebx + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x418f8b
cmp byte [eax + 9], 0
jne 0x418ff7
inc edx
add ecx, 0x10
cmp edx, dword [ebx + 0x14]
jl 0x418f7f
jmp 0x419038
push 2
call dword [0x4751b8]
pop ecx
mov ebx, eax
cmp dword [0x475174], edi
je 0x418f40
push edi
call dword [0x4751b8]
pop ecx
mov dword [esi + 0x38], eax
cmp eax, edi
jne 0x418f40
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 7
mov byte [eax + 0x40], 0
mov edi, dword [esp + 0x2c]
test esi, esi
je 0x418fde
mov ebx, dword [esi]
test ebx, ebx
je 0x418fde
call fcn.004141e8
push esi
call fcn.0040c26b
pop ecx
push edi
call fcn.0040c26b
mov eax, dword [esp + 0x38]
and dword [eax], 0
jmp 0x419083
xor ebx, ebx
jmp 0x418ffe
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x18], ebx
jne 0x418ffb
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 4]
jae 0x419020
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [eax + 0x18], edi
jmp 0x419038
mov edx, dword [eax + 0x14]
cmp dword [edx + 4], ecx
jae 0x419025
mov eax, edx
cmp dword [eax + 0x14], ebx
jne 0x419016
mov ecx, dword [eax + 0x14]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
cmp ecx, ebx
je 0x419035
mov dword [ecx + 0x18], edi
mov dword [eax + 0x14], edi
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x34]
mov dword [eax], edi
jne 0x418fcf
mov ebx, dword [edi + 4]
mov eax, edi
call fcn.00417a97
mov esi, edi
call fcn.00417b1f
cmp dword [ebx + 0x30], 0
jne 0x419084
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xcc]
mov esi, dword [ecx + 0x28]
mov dword [ecx + 0x10], 0x7d0
test esi, esi
je 0x419084
call fcn.004116dc
push eax
push esi
call dword [0x4751e8]
pop ecx
pop ecx
cmp dword [esp + 0x20], 0
je 0x419095
push dword [esp + 0x20]
call fcn.0040bc3d
pop ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004500ac
mov esp, ebp
pop ebp
ret