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

Disassembly:
push 0xffffffffffffffff
push 0x527d7e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 0xb8]
mov ebx, dword [esp + 0xd8]
xor edi, edi
cmp ecx, edi
je 0x4124ed
mov eax, dword [ebx + 0x9c]
xor edx, edx
cmp eax, edi
je 0x4124ed
mov edi, edi
mov eax, dword [eax + 0x9c]
add edx, 1
cmp eax, edi
jne 0x4124c0
cmp edx, edi
jbe 0x4124ed
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push ebx
call edx
mov eax, dword [ebp + 0xb8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0x98], edi
je 0x412bfd
mov eax, dword [esp + 0xdc]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.0043ba60
test al, al
je 0x4128da
mov eax, dword [ebx + 0x70]
mov edx, dword [ebp]
mov edx, dword [edx + 0x10]
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call edx
mov dword [esp + 0xd0], edi
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x4128c6
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebx + 0x98]
cmp eax, 1
jne 0x4128e1
or esi, 0xffffffff
mov dword [esp + 0x28], esi
push 0x2000000
push 3
push 3
mov byte [esp + 0xdc], al
push SysReAllocStringLen
lea eax, [ebx + 0x2c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0043b980
test al, al
jne 0x4125b3
lea ecx, [esp + 0x28]
call fcn.0043b960
mov dword [esp + 0xd0], esi
lea eax, [esp + 0x20]
call fcn.004113e0
xor al, al
jmp 0x412bc2
cmp dword [ebx + 0x70], 2
jne 0x412645
lea edi, [esp + 0x34]
lea eax, [esp + 0x28]
call fcn.0043bac0
mov eax, dword [ebp + 0xc8]
mov ecx, dword [ebp + 0xc0]
mov edx, dword [ebp + 0xc4]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xac]
push eax
mov eax, dword [ebp + 0xb8]
push eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [ebp + 0xcc]
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc8], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
call edx
jmp 0x412897
mov edi, 0x100000
lea esi, [esp + 0x64]
call fcn.004038c0
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xd4], 2
mov ecx, dword [esp + 0x70]
push 0x100000
push ecx
xor edi, edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], edi
call fcn.0043b9c0
test al, al
je 0x41288e
mov edx, dword [esp + 0x34]
fld qword [0x54ebb8]
add edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
adc esi, edi
cmp dword [ebp + 0xb8], edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
je 0x412808
mov edi, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc4]
mov ecx, edi
or ecx, eax
jne 0x4126ca
fld st(0)
jmp 0x412759
mov ecx, dword [ebp + 0xc8]
mov eax, dword [ebp + 0xcc]
add ecx, edx
adc eax, esi
mov dword [esp + 0x84], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x88], eax
fild qword [esp + 0x84]
mov eax, dword [ebp + 0xc4]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], 0
fild qword [esp + 0x8c]
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
fchs
mov dword [esp + 0x9c], edi
faddp st(1)
mov dword [esp + 0xa0], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], 0
fmul st(1)
fild qword [esp + 0x9c]
fild qword [esp + 0x74]
fchs
faddp st(1)
fdivp st(1)
mov edi, dword [ebx + 0x68]
mov eax, dword [ebx + 0x6c]
mov ecx, edi
or ecx, eax
je 0x4127d7
mov eax, esi
mov ecx, esi
and eax, 0x7fffffff
mov dword [esp + 0xa4], edx
and ecx, 0x80000000
xor edx, edx
mov dword [esp + 0xa8], eax
fild qword [esp + 0xa4]
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], edx
fild qword [esp + 0x94]
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
fchs
mov dword [esp + 0x7c], edi
faddp st(1)
mov dword [esp + 0x80], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
fmulp st(2)
fild qword [esp + 0x7c]
fild qword [esp + 0x14]
fchs
faddp st(1)
fdivp st(2)
mov ecx, dword [ebp + 0xb8]
fxch st(1)
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
sub esp, 0x10
fstp qword [esp + 8]
fstp qword [esp]
call eax
mov eax, dword [ebp + 0xb8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
jmp 0x41280a
fstp st(0)
mov edx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c]
cmp eax, edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], esp
je 0x412838
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0xe4]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x78]
push ebx
push edx
push eax
call fcn.00413870
test al, al
je 0x4128b4
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x50]
mov al, byte [ebp + 0xd0]
adc dword [esp + 0x30], edx
test al, al
jne 0x4128b4
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push ecx
push 0x100000
push edx
lea ecx, [esp + 0x34]
call fcn.0043b9c0
test al, al
jne 0x412681
lea ecx, [esp + 0x64]
call fcn.00403950
lea esi, [esp + 0x28]
call fcn.0043ba40
mov ecx, esi
mov byte [esp + 0xd0], 0
call fcn.0043b960
jmp 0x412a80
lea ecx, [esp + 0x64]
call fcn.00403950
lea ecx, [esp + 0x28]
call fcn.0043b960
lea eax, [esp + 0x20]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004113e0
xor al, al
jmp 0x412bc2
cmp eax, 2
jne 0x412bde
mov esi, dword [ebx + 0x94]
xor edx, edx
cmp dword [ebp + 0xb8], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
je 0x412a37
mov edi, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc4]
mov ecx, edi
or ecx, eax
jne 0x41292d
fld qword [0x54ebb8]
fld st(0)
jmp 0x4129a1
mov ecx, dword [ebp + 0xc8]
mov eax, dword [ebp + 0xcc]
add ecx, esi
mov dword [esp + 0x14], ecx
adc eax, edx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
mov eax, dword [ebp + 0xc4]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x14], edi
fchs
mov dword [esp + 0x18], eax
faddp st(1)
and ecx, 0x80000000
fld qword [0x54ebb8]
fmul st(1), st(0)
fild qword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
fchs
faddp st(1)
fdivp st(2)
fxch st(1)
mov edi, dword [ebx + 0x68]
mov eax, dword [ebx + 0x6c]
mov ecx, edi
or ecx, eax
je 0x412a0a
mov eax, edx
mov ecx, edx
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x14], esi
fild qword [esp + 0x14]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
xor edx, edx
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x14], edi
fchs
mov dword [esp + 0x18], eax
faddp st(1)
and ecx, 0x80000000
fmulp st(2)
fild qword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
fchs
faddp st(1)
fdivp st(2)
mov ecx, dword [ebp + 0xb8]
fxch st(1)
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
sub esp, 0x10
fstp qword [esp + 8]
fstp qword [esp]
call eax
mov eax, dword [ebp + 0xb8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea ecx, [esp + 0x28]
mov eax, esp
lea edi, [esp + 0x5c]
mov dword [esp + 0x64], esp
call fcn.00411420
mov edx, dword [esp + 0xe4]
mov eax, dword [ebx + 0x90]
push edx
push ebx
push esi
push eax
mov ecx, edi
call fcn.00413870
test al, al
je 0x4128c6
mov eax, dword [esp + 0x54]
add dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x58]
adc dword [esp + 0x30], ecx
lea ecx, [ecx]
mov eax, dword [ebx + 0x70]
xor esi, esi
cmp eax, esi
je 0x412b2c
cmp eax, 2
jne 0x412a9f
cmp dword [ebx + 0x98], 1
je 0x412b2c
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x4128c6
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x40]
push eax
call edx
cmp eax, esi
je 0x412afb
mov edx, dword [esp + 0x40]
cmp edx, esi
jbe 0x412afb
add dword [esp + 0x2c], edx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x60], esi
adc dword [esp + 0x30], esi
push ecx
lea esi, [esp + 0x64]
mov edi, edx
mov ecx, eax
call fcn.0043ba10
test al, al
je 0x4128c6
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x4128c6
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
ja 0x412a80
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x78], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x7c], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x80], edx
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov dword [ebx + 0x70], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004113e0
xor edi, edi
mov ecx, dword [ebp + 0xb8]
cmp ecx, edi
je 0x412bc0
mov eax, dword [ebx + 0x9c]
xor edx, edx
cmp eax, edi
je 0x412bc0
mov eax, dword [eax + 0x9c]
add edx, 1
cmp eax, edi
jne 0x412b95
cmp edx, edi
jbe 0x412bc0
mov edx, dword [ebx + 0x68]
add dword [ebp + 0xc8], edx
mov eax, dword [ebx + 0x6c]
push ebx
adc dword [ebp + 0xcc], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov al, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 8
cmp eax, 3
mov dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0x20]
jne 0x4125a7
call fcn.004113e0
jmp 0x412bc0
mov eax, ebx
xor esi, esi
call fcn.00414820
test eax, eax
jbe 0x412b7f
mov edi, dword [esp + 0xdc]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x412c28
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x412c2d
call fcn.004ec14b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*8]
push edi
push eax
mov ecx, ebp
call fcn.00412470
test al, al
je 0x412c61
mov dl, byte [ebp + 0xd0]
test dl, dl
jne 0x4125ac
mov eax, ebx
add esi, 1
call fcn.00414820
cmp esi, eax
jb 0x412c15
jmp 0x412b7d
mov al, byte [ebp + 0xd0]
xor al, al
jmp 0x412bc2