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

Disassembly:
push 0xffffffffffffffff
push 0x4371cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x6c], edi
call fcn.0040de30
lea ecx, [esp + 0x80]
mov dword [esp + 0x110], 0
call fcn.00423690
lea ecx, [esp + 0xcc]
mov byte [esp + 0x110], 1
call fcn.00412600
mov eax, dword [esp + 0x170]
mov byte [esp + 0x110], 2
test eax, eax
je 0x414795
mov dword [eax], 0xc8
mov ecx, edi
call fcn.00414020
test eax, eax
je 0x41487d
mov ecx, dword [esp + 0x11c]
xor ebx, ebx
push ebx
call fcn.0040eef0
mov esi, dword [esp + 0x168]
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
cmp esi, ebx
mov ebx, dword [esp + 0x16c]
je 0x414825
lea eax, [esp + 0x28]
push ebx
push eax
push 0xb
call esi
lea ecx, [esp + 0x40]
push ebx
push ecx
push 0xd
call esi
mov eax, dword [esp + 0x40]
add esp, 0x18
cmp eax, 1
jne 0x41481d
push 3
push 0x8000000
push 1
push 0
mov ecx, ebp
call fcn.0040eef0
push eax
lea ecx, [esp + 0xdc]
call fcn.00412e40
test eax, eax
jne 0x414835
jmp 0x414876
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x414835
test ebp, ebp
je 0x414835
push 0x44f820
mov ecx, ebp
call fcn.0040e430
mov esi, dword [esp + 0x17c]
test esi, esi
je 0x41484f
push esi
call fcn.0042b1f8
add esp, 4
test eax, eax
jne 0x41484f
xor esi, esi
push 0
push 0
push esi
mov ecx, dword [esp + 0x12c]
neg esi
sbb esi, esi
and esi, 3
push esi
push 0
call fcn.0040eef0
push eax
call dword [edi + 0x38]
test eax, eax
mov dword [esp + 0x54], eax
jne 0x4148c3
mov ecx, edi
call fcn.00414220
lea ecx, [esp + 0xcc]
mov byte [esp + 0x110], 1
call fcn.00412620
lea ecx, [esp + 0x80]
mov byte [esp + 0x110], 0
call fcn.004112a0
lea ecx, [esp + 0xa0]
mov dword [esp + 0x110], 0xffffffff
call fcn.0040ded0
xor eax, eax
jmp 0x415293
mov ecx, dword [esp + 0x180]
mov dword [edi + 0xc], eax
cmp ecx, 0xffffffff
je 0x4148e2
lea edx, [esp + 0x180]
push 4
push edx
push 2
push eax
call dword [edi + 0x44]
push 0x10002
lea ecx, [esp + 0xa4]
call fcn.0040dfc0
push 0x10002
call fcn.0042b0be
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x415203
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x130]
mov esi, dword [esp + 0x118]
push edi
push 0
push eax
mov eax, dword [esp + 0x14c]
push ecx
push edx
push eax
push 0
mov ecx, esi
call fcn.0040eef0
mov ebx, dword [esp + 0x6c]
push eax
push ebx
call dword [edi + 0x50]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x414960
push eax
mov ecx, esi
call fcn.0040eef0
push ebx
jmp 0x4151f4
mov eax, dword [esp + 0x168]
mov dword [esp + 0x40], 0
test eax, eax
je 0x41499d
mov ecx, dword [esp + 0x16c]
lea edx, [esp + 0x40]
push ecx
push edx
push 8
call eax
add esp, 0xc
cmp eax, 1
jne 0x41499d
cmp dword [esp + 0x40], 1
jne 0x41499d
push 0
push 0
push 0x2a
push ebp
call dword [edi + 0x44]
mov esi, dword [esp + 0x138]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4149b9
push esi
call ebx
push eax
push esi
push 0x2b
push ebp
call dword [edi + 0x44]
mov esi, dword [esp + 0x13c]
test esi, esi
je 0x4149cf
push esi
call ebx
push eax
push esi
push 0x2c
push ebp
call dword [edi + 0x44]
mov eax, dword [esp + 0x168]
mov esi, dword [esp + 0x160]
test eax, eax
je 0x414a0d
test esi, esi
je 0x4149ea
mov eax, dword [esi + 0x1c]
jmp 0x4149ec
xor eax, eax
mov ecx, dword [esp + 0x16c]
push ecx
push eax
push 0
call dword [esp + 0x174]
add esp, 0xc
test eax, eax
je 0x4151f7
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x144]
cmp eax, 3
jne 0x414b25
mov ebx, dword [esp + 0x168]
mov dword [esp + 0x78], 0x44756c
test ebx, ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x14], 0x84000300
je 0x414a86
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x11c]
push edx
push eax
push 9
call ebx
add esp, 0xc
test eax, eax
jne 0x414a63
or dword [esp + 0x14], 0x80000
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x11c]
push ecx
push edx
push 0xa
call ebx
add esp, 0xc
test eax, eax
jne 0x414a86
or dword [esp + 0x14], 0x200000
cmp word [esp + 0x140], 0x1bb
jne 0x414a9a
or dword [esp + 0x14], 0x800000
mov eax, dword [esp + 0x15c]
test eax, eax
jne 0x414aa9
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esp + 0x124]
push eax
push 0
push 0
push 0
call fcn.0040eef0
mov edx, dword [esp + 0x15c]
push eax
push edx
push ebp
call dword [edi + 0x3c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4151f7
mov eax, dword [esp + 0x168]
mov dword [esp + 0x60], 0
test eax, eax
je 0x414b0a
mov ecx, dword [esp + 0x16c]
lea edx, [esp + 0x60]
push ecx
push edx
push 0xc
call eax
mov eax, dword [esp + 0x6c]
add esp, 0xc
test eax, eax
jne 0x414b5c
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1f
push ebx
mov dword [esp + 0x24], 0x3380
call dword [edi + 0x44]
jmp 0x414b60
cmp eax, 1
jne 0x4151f7
mov ecx, dword [esp + 0x11c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocString
push 0
call fcn.0040eef0
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [edi + 0x40]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4151f7
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x168]
test eax, eax
je 0x414b99
mov edx, dword [edi + 0x1c]
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x70], edx
lea edx, [esp + 0x70]
push ecx
push edx
push 7
mov dword [esp + 0x80], ebx
call eax
add esp, 0xc
test eax, eax
je 0x4151eb
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14c]
mov eax, dword [esp + 0x164]
test esi, esi
jne 0x414c10
test eax, eax
jne 0x414c15
cmp dword [esp + 0x144], 3
jne 0x414e03
mov esi, dword [esp + 0x150]
cmp esi, 0xffffffff
jne 0x414bd4
push ebp
call fcn.0042b1f8
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
push eax
push ecx
push esi
push ebp
push ebx
call dword [edi + 0x14]
test eax, eax
jne 0x414e0a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push 0
call esi
push eax
mov ecx, 0x44ef70
call fcn.00406860
jmp 0x4151eb
mov ebp, dword [esi + 0x18]
jmp 0x414c17
xor ebp, ebp
push 0
push 0x2c
push eax
push esi
push ebx
mov dword [esp + 0x34], ebp
call dword [edi + 0x18]
test eax, eax
jne 0x414c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4151eb
mov eax, dword [esp + 0x168]
test eax, eax
je 0x414c57
mov edx, dword [esp + 0x16c]
push edx
push ebp
push 1
call eax
add esp, 0xc
test eax, eax
je 0x4151eb
test esi, esi
je 0x414ddf
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x414ddf
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x414cb9
mov eax, dword [esp + 0x178]
test eax, eax
jne 0x414cb9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x414dcb
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [edi + 0x54]
test eax, eax
je 0x414dd7
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x18]
cmp ecx, eax
jne 0x414dd7
jmp 0x414dcb
mov esi, dword [ebp + 0x18]
xor ebx, ebx
test esi, esi
jbe 0x414dcb
cmp esi, 0x10000
mov eax, esi
jb 0x414cd5
mov eax, 0x10000
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
push ecx
call dword [edi + 0x54]
test eax, eax
je 0x414dc5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x414dcb
mov edx, dword [esp + 0x20]
add ebx, eax
add edx, eax
mov eax, dword [esp + 0x178]
sub esi, ecx
mov dword [esp + 0x20], edx
test eax, eax
je 0x414d93
lea ecx, [esp + 0x80]
call fcn.004237a0
lea ecx, [esp + 0x80]
call fcn.004237c0
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], ecx
fild qword [esp + 0x58]
mov dword [esp + 0x50], eax
fmul qword [0x43a7b0]
fild qword [esp + 0x4c]
fdivr qword [0x43a7c0]
fmulp st(1)
fild qword [esp + 0x44]
fsubp st(1)
call fcn.0042b35c
test eax, eax
jle 0x414d87
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x80]
call fcn.00423790
mov eax, dword [esp + 0x168]
test eax, eax
je 0x414dbb
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x20]
push edx
push eax
push 1
call dword [esp + 0x174]
add esp, 0xc
test eax, eax
je 0x414dd7
test esi, esi
ja 0x414cc6
jmp 0x414dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x414ddf
jmp 0x414c6a
test ebp, ebp
jne 0x4151eb
mov ebx, dword [esp + 0x10]
push 0
push 8
push 0
push ebx
call dword [edi + 0x20]
test eax, eax
jne 0x414dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4151eb
mov ebp, dword [esp + 0x14c]
mov esi, dword [esp + 0x150]
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push 0x20000013
push ebx
mov dword [esp + 0x2c], 4
call dword [edi + 0x4c]
test eax, eax
je 0x414eda
mov ecx, dword [esp + 0x170]
mov eax, dword [esp + 0x2c]
test ecx, ecx
je 0x414e40
mov dword [ecx], eax
cmp eax, 0x197
jne 0x414eda
mov eax, dword [esp + 0x128]
test eax, eax
jne 0x414e5c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push 7
push 0x2eee
push ebx
push eax
call dword [edi + 0x48]
cmp eax, 0x2f00
jne 0x414eda
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
push eax
push ecx
push esi
push ebp
push ebx
call dword [edi + 0x14]
test eax, eax
jne 0x414eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0c
jne 0x4151eb
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 0x2f
push ebx
mov dword [esp + 0x24], 0
call dword [edi + 0x44]
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0x14c]
push eax
push ecx
push esi
push edx
push ebx
call dword [edi + 0x14]
test eax, eax
je 0x4151eb
xor esi, esi
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0xf8]
push eax
push ecx
push 5
push ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x2c], 0x14
call dword [edi + 0x4c]
test eax, eax
je 0x414f1e
lea edx, [esp + 0x64]
lea eax, [esp + 0xf4]
push edx
push str._I64d
push eax
call fcn.0042ab86
add esp, 0xc
mov eax, dword [esp + 0x168]
cmp eax, esi
je 0x414ff3
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x64]
push ecx
push edx
push 2
call eax
add esp, 0xc
test eax, eax
je 0x4151eb
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x64]
push eax
push ecx
push 3
call dword [esp + 0x174]
add esp, 0xc
test eax, eax
je 0x4151eb
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
mov esi, 0x2710
push 0x2b
push ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], esi
call dword [edi + 0x4c]
test eax, eax
je 0x414ff3
mov edx, dword [esp + 0x1c]
push 0
push 1
push edx
push ebx
lea ecx, [esp + 0xb0]
call fcn.0040e160
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0xa0]
push eax
push ecx
push 4
call dword [esp + 0x174]
add esp, 0xc
test eax, eax
je 0x4151eb
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push 0x2b
push ecx
mov dword [esp + 0x30], esi
call dword [edi + 0x4c]
test eax, eax
jne 0x414f98
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x41500d
cmp eax, 0x10001
jb 0x415012
mov eax, 0x10001
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [edi + 0x58]
test eax, eax
je 0x4151cf
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x3c], 1
test ebx, ebx
je 0x4151cf
cmp dword [esp + 0x28], 1
jne 0x41506b
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xcc]
push edx
push ebx
call fcn.00413230
test eax, eax
je 0x4151c7
jmp 0x4150fa
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4150c5
mov ecx, dword [eax + 8]
mov edx, dword [eax]
lea ebp, [eax + 8]
add ecx, ebx
push ecx
push edx
mov esi, eax
call fcn.0042b3c4
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4150fa
mov esi, dword [esp + 0x24]
mov edi, eax
mov eax, dword [ebp]
mov ecx, ebx
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp]
mov edi, dword [esp + 0x6c]
add edx, ebx
mov dword [ebp], edx
mov ecx, dword [ebp + 4]
adc ecx, eax
mov dword [ebp + 4], ecx
jmp 0x4150fa
mov eax, dword [esp + 0x124]
test eax, eax
je 0x4150fa
mov ecx, dword [esp + 0x24]
push 0
push 1
push ebx
push ecx
lea ecx, [esp + 0xb0]
call fcn.0040e160
mov ecx, dword [esp + 0x124]
lea edx, [esp + 0xa0]
push edx
call fcn.0040e410
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x174]
xor ebx, ebx
add ecx, eax
cmp esi, ebx
mov dword [esp + 0x20], ecx
je 0x415181
lea ecx, [esp + 0x80]
call fcn.004237a0
lea ecx, [esp + 0x80]
call fcn.004237c0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], esi
fild qword [esp + 0x4c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fmul qword [0x43a7b0]
fild qword [esp + 0x58]
fdivr qword [0x43a7c0]
fmulp st(1)
fild qword [esp + 0x44]
fsubp st(1)
call fcn.0042b35c
cmp eax, ebx
jle 0x415175
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x80]
call fcn.00423790
mov eax, dword [esp + 0x168]
cmp eax, ebx
je 0x4151a4
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x20]
push edx
push ecx
push 5
call eax
add esp, 0xc
test eax, eax
je 0x4151cf
mov eax, dword [esp + 0x12c]
cmp eax, ebx
je 0x414ffb
mov edx, dword [esp + 0x1c]
sub eax, edx
mov dword [esp + 0x12c], eax
je 0x4151cf
jmp 0x414ffb
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x168]
test eax, eax
je 0x4151eb
mov ecx, dword [esp + 0x16c]
push ecx
push 0
push 6
call eax
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4151f7
push eax
call dword [edi + 0x5c]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x415203
push eax
call dword [edi + 0x5c]
mov esi, dword [esp + 0x54]
push esi
call dword [edi + 0x5c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41521c
push eax
call fcn.0042b273
add esp, 4
cmp dword [edi + 0xc], esi
jne 0x415228
mov dword [edi + 0xc], 0
cmp dword [esp + 0x28], 1
jne 0x41523b
lea ecx, [esp + 0xcc]
call fcn.00413330
mov ecx, edi
call fcn.00414220
mov ecx, dword [esp + 0x11c]
push 0
call fcn.0040eef0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x110], 1
call fcn.00412620
lea ecx, [esp + 0x80]
mov byte [esp + 0x110], 0
call fcn.004112a0
lea ecx, [esp + 0xa0]
mov dword [esp + 0x110], 0xffffffff
call fcn.0040ded0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x104
ret 0x6c