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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov dl, byte [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x30]
mov byte [esp + 0x38], dl
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
call fcn.00409910
push eax
mov dword [esp + 0x9c], 0
call fcn.00416bc0
mov dword [esp + 0x40], eax
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x415300
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.004a44c1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4152d8
cmp eax, 0xffffffff
jae 0x4152d8
dec eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 4]
neg eax
sbb eax, eax
not eax
and eax, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.004a44e9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x415300
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x6c]
push eax
call fcn.00416120
mov dword [esp + 0x98], 1
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor ecx, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ecx
mov byte [esp + 0x50], cl
mov byte [esp + 0x98], 2
mov al, byte [esi]
cmp al, 0x2b
je 0x415350
mov dword [esp + 0x1c], ecx
cmp al, 0x2d
jne 0x415358
mov dword [esp + 0x1c], 1
call fcn.004b83f6
mov ecx, dword [eax]
mov dl, byte [ecx]
push ebx
push 0x65
push esi
mov byte [esp + 0x30], dl
mov word [esp + 0x31], 0x65
call fcn.004b7fc0
add esp, 0xc
mov dword [esp + 0x28], eax
movsx eax, byte [esp + 0x24]
push ebx
push eax
push esi
call fcn.004b7fc0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x415398
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x6c]
mov eax, edx
cmp ecx, 0x10
jae 0x4153ae
lea eax, [esp + 0x6c]
cmp byte [eax], 0x7f
je 0x4154f9
mov eax, edx
cmp ecx, 0x10
jae 0x4153c2
lea eax, [esp + 0x6c]
cmp byte [eax], 0
jle 0x4154f9
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0040ddb0
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x4153f0
mov ecx, dword [esp + 0x14]
push 0x30
push ecx
lea ecx, [esp + 0x58]
call fcn.0040d0e0
jmp 0x415422
cmp dword [esp + 0x10], 0
jne 0x41540f
mov edx, dword [esp + 0x20]
push 0x30
push edx
lea ecx, [esp + 0x58]
call fcn.0040d0e0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
push 0x30
push eax
sub ebx, esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.00414d40
mov ebx, dword [esp + 0x10]
push 0x30
test ebx, ebx
jne 0x41543c
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x58]
call fcn.0040d0e0
jmp 0x415469
mov edx, dword [esp + 0x34]
sub ebx, esi
push edx
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x5c]
call fcn.00414d40
mov ecx, dword [esp + 0x20]
push 0x30
push ecx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00414d40
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x6c]
mov eax, 0x10
mov dword [esp + 0x20], 0
cmp dword [esp + 0x80], eax
jae 0x415487
lea ebx, [esp + 0x6c]
cmp dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
jae 0x415495
lea eax, [esp + 0x50]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004b83b0
mov esi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x4154de
jmp 0x4154b0
test al, al
jle 0x4154de
mov ecx, esi
sub ecx, dword [esp + 0x1c]
movsx eax, al
cmp eax, ecx
jae 0x4154de
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x5c]
call fcn.00414d40
cmp byte [ebx + 1], 0
jle 0x4154d8
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x4154b0
cmp dword [esp + 0x64], 0x10
mov esi, dword [esp + 0x50]
jae 0x4154ed
lea esi, [esp + 0x50]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
lea eax, [ebx + edx]
add eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add eax, dword [esp + 0x20]
cmp dword [edx + 0x24], 0
mov ecx, dword [edx + 0x20]
jl 0x415527
jg 0x41551b
test ecx, ecx
je 0x415527
cmp ecx, eax
jbe 0x415527
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x41552f
mov dword [esp + 0x10], 0
mov eax, dword [edx + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x4155a3
cmp eax, 0x100
jne 0x415570
cmp dword [esp + 0x1c], 0
jbe 0x415570
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 1
push esi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00415f50
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
add esp, 0x18
inc esi
mov dword [ebp + 0x14], edx
dec ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00415c00
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], 0
mov dword [ebp + 0x14], eax
add esp, 0x18
movsx ecx, byte [esp + 0x24]
push ebx
push ecx
push esi
call fcn.004b7fc0
add esp, 0xc
test eax, eax
je 0x415675
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
sub eax, esi
push edx
inc eax
mov dword [esp + 0x20], eax
dec eax
push eax
mov eax, dword [ebp + 0x14]
push esi
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.00415fc0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0x30
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00415c00
mov edx, dword [eax]
mov ecx, dword [esp + 0x54]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x18
call eax
mov edx, dword [ebp + 0x14]
push 1
mov byte [esp + 0x2c], al
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
call fcn.00415c00
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x48]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.00415c00
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x4c]
add esp, 0x30
add esi, eax
mov dword [ebp + 0x14], edx
sub ebx, eax
push ebx
push 0x65
push esi
call fcn.004b7fc0
add esp, 0xc
test eax, eax
je 0x415727
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
sub eax, esi
push ecx
inc eax
mov dword [esp + 0x2c], eax
dec eax
push eax
mov eax, dword [ebp + 0x10]
push esi
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
call fcn.00415fc0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x54]
push eax
push edi
call fcn.00415c00
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 4]
add esp, 0x18
test byte [ecx + 0x14], 4
mov dword [ebp + 0x14], edx
mov dword [esp + 0x14], 0
mov ecx, 0x58bce4
jne 0x4156fc
mov ecx, 0x58bce8
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push ecx
push edi
call fcn.00415f50
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x40]
add esp, 0x18
add esi, eax
sub ebx, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push esi
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.00415fc0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00415c00
mov ecx, dword [eax]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x64]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x54]
push edx
push eax
push ecx
push esi
push edi
mov dword [ebp + 0x14], eax
call fcn.00415c00
mov edi, 0x10
add esp, 0x30
cmp dword [esp + 0x64], edi
jb 0x4157b1
mov eax, dword [esp + 0x50]
push eax
call fcn.004b3245
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x80], edi
jb 0x4157d7
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004b3245
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004b303a
mov esp, ebp
pop ebp
ret