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

Disassembly:
push 0xffffffffffffffff
push 0x445792
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551b0]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x8a8], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x8b0], 1
call fcn.00413390
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x412900
mov ecx, dword [esp + 0x3c]
sub ecx, eax
mov eax, 0x7e8472a9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x412963
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x412913
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 6
jne 0x412963
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], ebp
mov word [ebx + 4], bp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x412945
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.004149b0
mov edx, dword [esp + 0x28]
push edx
call fcn.00431474
add esp, 0xc
lea ebx, [esp + 0x34]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00413860
mov eax, dword [esp + 0x30]
jmp 0x412bcf
mov eax, 7
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
lea esi, [esp + 0x48c]
call fcn.00414e30
mov byte [esp + 0x8a8], 4
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov ecx, dword [esp + 0x3c]
jne 0x4129a8
mov dword [esp + 0x18], ebp
jmp 0x4129c1
mov edx, ecx
sub edx, esi
mov eax, 0x7e8472a9
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x18], ebp
jbe 0x412a8d
mov dword [esp + 0x2c], ebp
jmp 0x4129db
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, ebp
je 0x4129f6
sub ecx, esi
mov eax, 0x7e8472a9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4129ff
call fcn.00431c40
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x7c]
lea ecx, [eax + esi]
push edx
call fcn.00412c00
mov eax, 5
mov byte [esp + 0x8a8], al
cmp dword [esp + 0x34c], eax
je 0x412a3a
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x110]
lea ecx, [esp + 0x68]
call fcn.004019a0
jmp 0x412a67
cmp dword [esp + 0x52c], ebp
je 0x412a53
mov eax, dword [esp + 0x354]
cmp eax, dword [esp + 0x764]
jbe 0x412a67
lea eax, [esp + 0x7c]
lea ebx, [esp + 0x48c]
call fcn.00412d30
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x7c]
mov byte [esp + 0x8a8], 4
call fcn.00414fc0
add dword [esp + 0x2c], 0x40c
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x4129d3
cmp dword [esp + 0x52c], ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push ebp
lea eax, [esp + 0x68]
je 0x412aa8
lea eax, [esp + 0x520]
call fcn.004019a0
cmp dword [esp + 0x58], ebp
jne 0x412b03
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x412b03
mov eax, dword [esp + 0x24]
mov edx, eax
sub edx, ecx
sar edx, 6
je 0x412b03
xor esi, esi
xor edi, edi
lea esp, [esp]
cmp ecx, ebp
je 0x412b03
sub eax, ecx
sar eax, 6
cmp esi, eax
jae 0x412b03
push 0xffffffffffffffff
lea eax, [edi + ecx + 0x1c]
push ebp
lea ecx, [esp + 0x4c]
call fcn.004019a0
cmp dword [esp + 0x58], ebp
jne 0x412b03
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esi, 1
add edi, 0x40
jmp 0x412ad0
push 0xffffffffffffffff
mov edi, 7
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], ebp
push ebp
lea eax, [esp + 0x4c]
mov ecx, ebx
mov word [ebx + 4], bp
call fcn.004019a0
lea esi, [esp + 0x48c]
call fcn.00414fc0
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x412b44
mov eax, dword [esp + 0x64]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
jb 0x412b64
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00431474
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x412b95
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.004149b0
mov edx, dword [esp + 0x28]
push edx
call fcn.00431474
add esp, 0xc
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x412bcd
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x412bc4
call fcn.00414fc0
add esi, 0x40c
cmp esi, edi
jne 0x412bb1
mov esi, dword [esp + 0x38]
push esi
call fcn.00431474
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.00431b07
add esp, 0x898
ret