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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0c70
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x30]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x2c]
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebx
call fcn.0040cdb0
mov dword [esp + 0x98], 0
push eax
call fcn.00417180
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41593f
mov ebx, eax
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebx
call fcn.0048f6c1
mov dword [esp + 0x98], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x41590e
cmp eax, 0xffffffff
jae 0x41590e
dec eax
mov dword [ebx + 4], eax
mov ebx, dword [ebx + 4]
neg ebx
sbb ebx, ebx
not ebx
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0048f6e9
and ebx, dword [esp + 0x3c]
je 0x41593b
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x48]
call fcn.004168d0
mov dword [esp + 0x98], 2
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
movzx ecx, ax
xor eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], eax
mov byte [esp + 0x50], al
mov byte [esp + 0x98], 3
lea edx, [edi + 8]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 1
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x48], 0x30
call fcn.0048fe91
mov al, byte [esi]
add esp, 0x14
cmp al, 0x2b
je 0x4159c0
mov dword [esp + 0x24], 0
cmp al, 0x2d
jne 0x4159c8
mov dword [esp + 0x24], 1
call fcn.004917a1
mov eax, dword [eax]
mov cl, byte [eax]
push ebx
push 0x65
push esi
mov byte [esp + 0x2c], cl
mov word [esp + 0x2d], 0x65
call fcn.004917d0
movsx edx, byte [esp + 0x2c]
add esp, 0xc
push ebx
push edx
push esi
mov dword [esp + 0x38], eax
call fcn.004917d0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x415a08
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
mov ecx, eax
cmp edx, 0x10
jae 0x415a1e
lea ecx, [esp + 0x6c]
cmp byte [ecx], 0x7f
je 0x415b6f
cmp edx, 0x10
jae 0x415a30
lea eax, [esp + 0x6c]
cmp byte [eax], 0
jle 0x415b6f
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.00409870
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x415a5e
mov eax, dword [esp + 0x18]
push 0x30
push eax
lea ecx, [esp + 0x58]
call fcn.00405e70
jmp 0x415a90
cmp dword [esp + 0x14], 0
jne 0x415a7d
mov ecx, dword [esp + 0x28]
push 0x30
push ecx
lea ecx, [esp + 0x58]
call fcn.00405e70
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x18]
push 0x30
push edx
sub ebx, esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.004155d0
mov ebx, dword [esp + 0x14]
push 0x30
test ebx, ebx
jne 0x415aaa
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x58]
call fcn.00405e70
jmp 0x415ad7
mov ecx, dword [esp + 0x44]
sub ebx, esi
push ecx
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x5c]
call fcn.004155d0
mov eax, dword [esp + 0x28]
push 0x30
push eax
push ebx
lea ecx, [esp + 0x5c]
call fcn.004155d0
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x6c]
mov eax, 0x10
mov dword [esp + 0x28], 0
cmp dword [esp + 0x80], eax
jae 0x415af5
lea ebx, [esp + 0x6c]
cmp dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
jae 0x415b03
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00491880
mov esi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x415b4e
lea esp, [esp]
test al, al
jle 0x415b4e
mov edx, esi
sub edx, dword [esp + 0x24]
movsx eax, al
cmp eax, edx
jae 0x415b4e
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x5c]
call fcn.004155d0
cmp byte [ebx + 1], 0
jle 0x415b48
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x415b20
cmp dword [esp + 0x64], 0x10
mov esi, dword [esp + 0x50]
jae 0x415b5d
lea esi, [esp + 0x50]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ebx + ecx]
add eax, dword [esp + 0x40]
mov ecx, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
add eax, dword [esp + 0x28]
test edx, edx
jl 0x415bb6
jg 0x415b94
mov edx, ecx
test edx, edx
je 0x415bb6
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x30], edx
cmp ecx, eax
jbe 0x415bb6
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x24]
sub ecx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], ecx
jmp 0x415bbe
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x415c66
cmp eax, 0x100
je 0x415c03
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.00416300
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
jmp 0x415c5b
cmp dword [esp + 0x24], 0
jbe 0x415c34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 1
push esi
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.00416760
mov ecx, dword [eax]
add esp, 0x18
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
inc esi
dec ebx
mov dword [ebp + 0x14], edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.00416300
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x2c], 0
add esp, 0x18
movsx ecx, byte [esp + 0x20]
push ebx
push ecx
push esi
call fcn.004917d0
add esp, 0xc
test eax, eax
je 0x415d3b
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x14]
sub eax, esi
push edx
mov edx, dword [ebp + 0x10]
lea ebx, [eax + 1]
lea eax, [ebx - 1]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00416830
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x44]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00416300
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 0x14], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0x18
call edx
mov ecx, dword [ebp + 0x10]
movzx eax, ax
push 1
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.00416300
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x58]
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x54]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
push edi
call fcn.00416300
mov ecx, dword [eax]
add esi, ebx
add esp, 0x30
sub dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
push ebx
push 0x65
push esi
call fcn.004917d0
add esp, 0xc
test eax, eax
je 0x415df2
mov edx, dword [ebp + 0x14]
sub eax, esi
lea ebx, [eax + 1]
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.00416830
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
add esp, 0x1c
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.00416300
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
add esp, 0x18
test byte [edx + 0x14], 4
mov dword [ebp + 0x14], ecx
mov dword [esp + 0x18], 0
mov ecx, 0x4c4f28
jne 0x415dc5
mov ecx, 0x4c4f2c
mov edx, dword [eax]
push 1
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00416760
mov ecx, dword [eax]
add esi, ebx
add esp, 0x18
sub dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00416830
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00416300
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x60]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor esi, esi
mov dword [edx + 0x20], esi
mov dword [edx + 0x24], esi
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push ebx
push edi
mov dword [ebp + 0x14], eax
call fcn.00416300
add esp, 0x30
mov byte [esp + 0x98], 2
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x415e86
mov eax, dword [esp + 0x50]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
mov dword [esp + 0x98], 0xffffffff
cmp dword [esp + 0x80], edi
jb 0x415eb8
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], esi
mov byte [esp + 0x6c], 0
mov eax, ebx
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.004911d1
mov esp, ebp
pop ebp
ret