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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499d10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b8744]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4b8744]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4105c9
mov al, byte [ebx]
cmp al, 0x2b
je 0x4105c4
cmp al, 0x2d
jne 0x4105c9
xor edi, edi
inc edi
jmp 0x4105cb
xor edi, edi
mov ecx, esi
call fcn.00412796
mov ecx, 0x3000
and eax, ecx
cmp eax, ecx
je 0x4105e4
mov edx, 0x4a34f0
jmp 0x410608
lea eax, [edi + 2]
mov edx, 0x4a34ec
cmp eax, dword [esp + 0x14]
ja 0x410608
cmp byte [ebx + edi], 0x30
jne 0x410608
mov cl, byte [ebx + edi + 1]
cmp cl, 0x78
je 0x410606
cmp cl, 0x58
jne 0x410608
mov edi, eax
push edx
push ebx
call fcn.00480070
mov dword [esp + 0x38], eax
push 0x2e
pop eax
mov word [esp + 0x20], ax
call fcn.0047ff47
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00480070
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00412727
and dword [esp + 0x80], 0
push eax
call fcn.00412536
or dword [esp + 0x84], 0xffffffff
mov esi, eax
pop ecx
lea ecx, [esp + 0x24]
call fcn.0041270f
push 0x30
mov ecx, esi
call fcn.004125d9
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x48]
mov byte [esp + 0x28], al
call fcn.0041172e
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 1
call fcn.0040c1f9
push eax
mov eax, dword [esp + 0x18]
mov ecx, esi
add eax, ebx
push eax
push ebx
call fcn.004116e5
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
call fcn.00412727
push eax
mov byte [esp + 0x84], 2
call fcn.00411b4e
pop ecx
mov ebx, eax
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
call fcn.0041270f
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004116cc
mov ecx, ebx
mov byte [esp + 0x80], 3
call fcn.004116c7
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x20]
mov byte [esp + 0x38], al
cmp ebx, dword [esp + 0x18]
jne 0x410722
mov eax, dword [ebp + 0x24]
push eax
push ecx
lea ebx, [ecx + eax]
lea ecx, [esp + 0x4c]
call fcn.0041163f
jmp 0x41077d
mov esi, dword [ebp + 0x24]
push dword [ebp + 0x2c]
push ecx
lea eax, [ebx + esi]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.0041163f
push dword [esp + 0x20]
lea eax, [ebx + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x48]
push eax
call fcn.0041163f
mov ecx, dword [esp + 0x28]
call fcn.0041163a
push dword [esp + 0x10]
lea ecx, [esp + 0x44]
mov bl, al
call fcn.0040c1f9
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push esi
push dword [esp + 0x18]
mov byte [eax], bl
call fcn.0041163f
mov ebx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x5c]
call fcn.0040c1f9
mov esi, eax
jmp 0x4107b6
test al, al
jle 0x4107bc
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x4107bc
push dword [esp + 0x34]
sub ebx, ecx
lea ecx, [esp + 0x44]
push 1
push ebx
call fcn.0041163f
lea eax, [esi + 1]
cmp byte [eax], 0
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x41078c
lea ecx, [esp + 0x40]
call fcn.00404b17
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x34], esi
call fcn.00411788
mov ebx, eax
test edx, edx
jl 0x4107e8
jg 0x4107e0
test ebx, ebx
je 0x4107e8
cmp ebx, esi
jbe 0x4107e8
sub ebx, esi
jmp 0x4107ea
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
call fcn.00412796
and eax, 0x1c0
cmp eax, 0x40
je 0x41088d
cmp eax, 0x100
je 0x410844
push ebx
push dword [ebp + 0x1c]
lea eax, [esp + 0x30]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00410d1f
add esp, 0x18
lea ecx, [esp + 0x40]
mov esi, eax
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 4]
push ebx
mov dword [ebp + 0x14], eax
call fcn.0040c1f9
push eax
push dword [esi + 4]
push dword [esi]
jmp 0x4108a0
push edi
push 0
lea ecx, [esp + 0x48]
call fcn.0040c1f9
mov esi, dword [ebp + 8]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x34]
push dword [ebp + 0x10]
push eax
push esi
call fcn.00410ce3
mov ecx, eax
push ebx
push dword [ebp + 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x48]
push dword [ecx + 4]
push dword [ecx]
push eax
push esi
call fcn.00410d1f
add esp, 0x30
xor ebx, ebx
jmp 0x4108b0
push edi
push 0
lea ecx, [esp + 0x48]
call fcn.0040c1f9
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [esp + 0x38]
push eax
push dword [ebp + 8]
call fcn.00410ce3
add esp, 0x18
mov esi, dword [eax]
lea ecx, [esp + 0x40]
mov dword [ebp + 0x10], esi
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x34]
sub eax, edi
push eax
push edi
call fcn.0040c1f9
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x40]
push esi
push eax
push dword [ebp + 8]
call fcn.00410ce3
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov edi, dword [eax]
push 0
mov dword [ebp + 0x10], edi
mov esi, dword [eax + 4]
push 0
mov dword [ebp + 0x14], esi
call fcn.0041176d
push ebx
push dword [ebp + 0x1c]
push esi
mov esi, dword [esp + 0x48]
push edi
push esi
push dword [ebp + 8]
call fcn.00410d1f
add esp, 0x18
lea ecx, [esp + 0x58]
call fcn.0040b62f
lea ecx, [esp + 0x40]
call fcn.0040b62f
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0047b6bc
mov esp, ebp
pop ebp
ret