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

Disassembly:
push 0xffffffffffffffff
push 0x477108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], ebp
xor esi, esi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
call fcn.0044e530
lea ecx, [esp + 0x64]
mov dword [esp + 0x190], esi
call fcn.0044cfb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 1
call fcn.00447d10
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 2
call fcn.00447d10
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 3
call fcn.00447d10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 4
call fcn.00447d10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x88]
push 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x19c]
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x198], 5
call fcn.0044f0e0
mov al, byte [esp + 0x88]
mov bl, 1
cmp al, bl
jl 0x41288d
mov eax, 1
mov cl, byte [esp + eax + 0x88]
push ecx
lea ecx, [esp + 0x20]
call fcn.00448180
movsx edx, byte [esp + 0x88]
inc bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x28]
and eax, 0xff
cmp eax, edx
jle 0x412861
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.004123a0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00447d20
lea ecx, [esp + 0x34]
call fcn.00448010
movzx ax, byte [esp + 0x1a0]
lea ecx, [esp + 0x30]
mov word [esp + 0x34], ax
push ecx
lea ecx, [esp + 0x48]
call fcn.0044eaa0
sub esp, 0x24
lea eax, [esp + 0x68]
mov edx, esp
mov dword [esp + 0x3c], esp
push 0
push eax
push edx
mov ecx, 0x4987b8
call fcn.004563a0
lea ecx, [esp + 0x88]
call fcn.0044d160
lea ecx, [esp + 0x64]
call fcn.0044d590
test ax, ax
jle 0x412f07
push 0
lea ecx, [esp + 0x68]
call fcn.0044d4d0
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x412920
mov byte [esp + 0x16], cl
jmp 0x41292c
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov byte [esp + 0x16], al
mov al, byte [esp + 0x16]
mov byte [esp + 0x38], 0
test al, al
jbe 0x412e0e
mov esi, dword [esp + 0x19c]
mov ecx, dword [esp + 0x38]
and ecx, 0xff
push ecx
push 0
lea ecx, [esp + 0x6c]
call fcn.0044d4d0
mov ecx, eax
call fcn.00404b10
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00447d20
lea ecx, [esp + 0x14]
call fcn.00448010
lea ecx, [esp + 0x10]
call fcn.004481a0
cmp al, 1
mov byte [esp + 0x28], al
jbe 0x412dec
mov cl, byte [ebp + 5]
test cl, cl
je 0x4129f6
mov edx, dword [esp + 0x28]
xor bl, bl
and edx, 0xff
mov byte [esp + 0x17], 0
lea edi, [edx - 1]
test edi, edi
jle 0x4129dc
xor ax, ax
lea ecx, [esp + 0x10]
mov al, bl
push eax
call fcn.00448000
mov cl, byte [esp + 0x17]
add cl, al
inc bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x40]
and ecx, 0xff
cmp ecx, edi
jl 0x4129ab
mov al, byte [esp + 0x28]
xor dx, dx
lea ecx, [esp + 0x10]
mov dl, al
dec edx
push edx
call fcn.00448000
cmp byte [esp + 0x17], al
jne 0x412e7f
mov al, byte [ebp + 4]
test al, al
je 0x412ae1
cmp al, 1
je 0x412ae1
cmp al, 4
je 0x412ae1
movzx ax, al
mov word [esp + 0x20], ax
mov al, byte [esp + 0x15]
test al, al
je 0x412c98
movzx ax, byte [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00448000
cmp al, 0x7f
je 0x412df4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x412c4d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x412a67
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebx, eax
ja 0x412a6c
mov ebx, 1
mov ecx, esi
call fcn.0040fd10
add eax, ebx
mov dword [esp + 0x18], eax
jns 0x412a7d
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0046a462
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.0040ff90
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.0040ffd0
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.0040ff90
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040fea0
mov eax, dword [esi + 4]
push eax
call fcn.00469f00
mov edx, dword [esp + 0x1c]
add esp, 4
jmp 0x412d3e
push 0
lea ecx, [esp + 0x14]
call fcn.00448000
cmp al, 0x80
jne 0x412b04
mov byte [esp + 0x14], 4
mov byte [esp + 0x15], 1
mov dword [esp + 0x20], 1
jmp 0x412b48
push 0
lea ecx, [esp + 0x14]
call fcn.00448000
cmp al, 0x48
jne 0x412b36
push 1
lea ecx, [esp + 0x14]
call fcn.00448000
cmp al, 0x6b
jne 0x412b36
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov dword [esp + 0x20], 4
jmp 0x412b48
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov dword [esp + 0x20], 0
movzx di, byte [esp + 0x14]
push edi
lea ecx, [esp + 0x14]
call fcn.00448000
cmp al, 0x7f
jne 0x412a26
mov bl, byte [esp + 0x1a0]
cmp bl, 0xff
je 0x412a26
lea ecx, [esp + 0x64]
call fcn.0044d5b0
lea ecx, [esp + 0x2c]
call fcn.00447d10
lea ecx, [esp + 0x54]
mov byte [esp + 0x190], 6
call fcn.0044e530
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x198], 7
call fcn.00447d20
lea ecx, [esp + 0x58]
call fcn.0044e780
push 1
lea ecx, [esp + 0x58]
call fcn.0044ec90
sub esp, 0x24
lea ecx, [esp + 0x78]
mov eax, esp
mov dword [esp + 0x3c], esp
push 0
push ecx
push eax
mov ecx, 0x4987b8
call fcn.004563a0
lea ecx, [esp + 0x88]
call fcn.0044d160
push ecx
lea ecx, [esp + 0x68]
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0044d4e0
lea ecx, [esp + 0x14]
call fcn.00448010
lea ecx, [esp + 0x10]
call fcn.004481a0
cmp ax, 1
mov byte [esp + 0x190], 6
lea ecx, [esp + 0x54]
jl 0x412ef1
call fcn.0044e550
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 5
call fcn.00447e50
push edi
lea ecx, [esp + 0x14]
call fcn.00448000
cmp al, 0x7f
je 0x412b67
jmp 0x412a26
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jb 0x412d6b
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.0040ff90
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00405b50
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405b10
mov eax, dword [esi + 8]
add esp, 0x18
add eax, 4
mov dword [esi + 8], eax
jmp 0x412df4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x412d5f
mov edx, dword [esi + 4]
test edx, edx
je 0x412cc1
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x412cc6
mov ecx, 1
test edx, edx
jne 0x412cce
xor eax, eax
jmp 0x412cd3
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x412cdf
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0046a462
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.0040ff90
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.0040ffd0
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.0040ff90
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040fea0
mov eax, dword [esi + 4]
push eax
call fcn.00469f00
mov edx, dword [esp + 0x1c]
add esp, 4
lea eax, [ebp + edx*4]
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.0040fd10
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esi + 8], ecx
jmp 0x412df4
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x412db4
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.0040ff90
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.0040ffd0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405b10
mov eax, dword [esi + 8]
add esp, 0xc
add eax, 4
mov dword [esi + 8], eax
jmp 0x412df4
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.0040ff90
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00405b50
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405b10
mov eax, dword [esi + 8]
add esp, 0x18
add eax, 4
mov dword [esi + 8], eax
jmp 0x412df4
mov dword [esp + 0x20], 0xffffff9b
mov al, byte [esp + 0x38]
mov cl, byte [esp + 0x16]
inc al
cmp al, cl
mov byte [esp + 0x38], al
jb 0x412944
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 4
call fcn.00447e50
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 3
call fcn.00447e50
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 2
call fcn.00447e50
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 1
call fcn.00447e50
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 0
call fcn.0044d0b0
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.0044e550
mov ax, si
jmp 0x412f74
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 4
call fcn.00447e50
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 3
call fcn.00447e50
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 2
call fcn.00447e50
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 1
call fcn.00447e50
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 0
call fcn.0044d0b0
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.0044e550
mov ax, 0xff9a
jmp 0x412f74
call fcn.0044e550
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 5
call fcn.00447e50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 4
call fcn.00447e50
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 3
call fcn.00447e50
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 2
call fcn.00447e50
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 1
call fcn.00447e50
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 0
call fcn.0044d0b0
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.0044e550
mov ax, 0xff9b
mov ecx, dword [esp + 0x188]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x184
ret 0xc