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

Disassembly:
push 0xffffffffffffffff
push 0x481700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x74]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.00416d10
movsx eax, byte [esp + 0x74]
mov byte [esp + 0x10], bl
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov dword [esp + 0x68], 1
je 0x41228f
push ebp
dec eax
push edi
je 0x4120db
dec eax
je 0x411f65
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.00416d10
mov dl, byte [esp + 0x7c]
mov dword [esp + 0x4c], ebx
movsx edi, byte [esp + 0x7c]
mov byte [esp + 0x48], dl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 9
call fcn.00415d60
cmp eax, edi
jae 0x411eab
cmp edi, ebx
mov eax, edi
jge 0x411e4c
xor eax, eax
shl eax, 3
push eax
call fcn.00465d62
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
add esp, 4
mov ebp, eax
push ebp
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.004160f0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00436e90
mov edx, dword [esp + 0x4c]
push edx
call fcn.00465d8b
lea eax, [ebp + edi*8]
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], eax
call fcn.0040b030
lea ecx, [ebp + eax*8]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ecx
cmp edi, ebx
jbe 0x411ef5
lea edx, [esp + 0x7c]
mov ecx, esi
push edx
call fcn.00416d10
movsx ebp, byte [esp + 0x7c]
lea eax, [esp + 0x80]
mov ecx, esi
push eax
call fcn.00416d50
movsx eax, word [esp + 0x80]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
call fcn.00415f40
dec edi
jne 0x411eaf
push 0x14
call fcn.00465d62
add esp, 4
mov dword [esp + 0x7c], eax
cmp eax, ebx
mov byte [esp + 0x70], 0xa
je 0x411f1a
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.00405c00
jmp 0x411f1c
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
setne dl
push eax
mov byte [esp + 0x74], 9
mov byte [esp + 0x24], dl
call fcn.00415ad0
mov al, byte [esp + 0x20]
test al, al
je 0x411f52
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x411f52
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 1
call fcn.00415ba0
jmp 0x41226d
lea eax, [esp + 0x7c]
mov ecx, esi
push eax
call fcn.00416d10
mov cl, byte [esp + 0x7c]
mov dword [esp + 0x4c], ebx
movsx edi, byte [esp + 0x7c]
mov byte [esp + 0x48], cl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 6
call fcn.00415d60
cmp eax, edi
jae 0x412007
cmp edi, ebx
mov eax, edi
jge 0x411fa4
xor eax, eax
lea edx, [eax*8]
push edx
call fcn.00465d62
mov ecx, dword [esp + 0x50]
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x50]
push ebp
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004160f0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.00436e90
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00465d8b
lea edx, [ebp + edi*8]
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], edx
call fcn.0040b030
lea eax, [ebp + eax*8]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], eax
cmp edi, ebx
jbe 0x412051
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.00416d10
movsx ebp, byte [esp + 0x7c]
lea edx, [esp + 0x80]
mov ecx, esi
push edx
call fcn.00416d10
movsx eax, byte [esp + 0x80]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ebp
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00415f40
dec edi
jne 0x41200b
push 0x14
call fcn.00465d62
add esp, 4
mov dword [esp + 0x7c], eax
cmp eax, ebx
mov byte [esp + 0x70], 7
je 0x412078
lea edx, [esp + 0x48]
mov ecx, eax
push edx
call fcn.00405ad0
mov esi, eax
jmp 0x41207a
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x44], esi
setne bl
mov byte [esp + 0x40], bl
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x70], 8
cmp ecx, esi
je 0x4120ac
mov al, byte [esp + 0x18]
test al, al
je 0x4120a6
test ecx, ecx
je 0x4120a6
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [esp + 0x18], bl
jmp 0x4120b5
test bl, bl
je 0x4120b5
mov byte [esp + 0x18], 1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], esi
mov byte [esp + 0x78], 1
call fcn.00436e90
mov eax, dword [esp + 0x4c]
push eax
jmp 0x412263
lea ecx, [esp + 0x13]
push ecx
mov ecx, esi
call fcn.00416d10
lea edx, [esp + 0x7c]
mov ecx, esi
push edx
call fcn.00416d10
mov al, byte [esp + 0x7c]
mov dword [esp + 0x4c], ebx
movsx edi, byte [esp + 0x7c]
mov byte [esp + 0x48], al
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 2
call fcn.00415d60
cmp eax, edi
jae 0x412189
cmp edi, ebx
mov eax, edi
jge 0x412126
xor eax, eax
lea ecx, [eax*8]
push ecx
call fcn.00465d62
mov edx, dword [esp + 0x54]
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x4c]
push ebp
push edx
push eax
lea ecx, [esp + 0x54]
call fcn.0040b250
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00415f10
mov eax, dword [esp + 0x4c]
push eax
call fcn.00465d8b
lea ecx, [ebp + edi*8]
add esp, 4
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x48]
call fcn.0040b030
lea edx, [ebp + eax*8]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
cmp edi, ebx
jbe 0x4121d8
mov ebp, dword [esp + 0x80]
mov bl, 3
push ebp
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.00411470
add esp, 0xc
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], bl
call fcn.00415d80
mov al, byte [esp + 0x38]
mov byte [esp + 0x70], 2
test al, al
je 0x4121d3
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4121d3
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x412196
xor ebx, ebx
push 0x18
call fcn.00465d62
add esp, 4
mov dword [esp + 0x7c], eax
cmp eax, ebx
mov byte [esp + 0x70], 4
je 0x412205
lea ecx, [esp + 0x48]
push ecx
movsx ecx, byte [esp + 0x17]
push ecx
mov ecx, eax
call fcn.00405900
mov esi, eax
jmp 0x412207
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x44], esi
setne bl
mov byte [esp + 0x40], bl
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x70], 5
cmp ecx, esi
je 0x412239
mov al, byte [esp + 0x18]
test al, al
je 0x412233
test ecx, ecx
je 0x412233
mov edx, dword [ecx]
push 1
call dword [edx]
mov byte [esp + 0x18], bl
jmp 0x412242
test bl, bl
je 0x412242
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], esi
mov byte [esp + 0x78], 1
call fcn.00415f10
mov edx, dword [esp + 0x4c]
push edx
call fcn.00465d8b
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x1c]
pop edi
cmp eax, ebx
pop ebp
jne 0x41228f
lea ecx, [esp + 0x40]
call fcn.004119b0
lea eax, [esp + 0x40]
push 0x498d18
push eax
call fcn.0044f5c5
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040bec0
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 0
call fcn.004469b0
mov ecx, dword [esp + 0x60]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret