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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x14]
sub esp, 0x64
test eax, eax
je 0x412987
add eax, 0xfffffff8
mov dword [esp + 8], eax
jmp 0x41298f
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x1c]
test eax, eax
mov edx, dword [ecx + 0x20]
push ebx
mov ebx, dword [ecx + 0x28]
push ebp
mov ebp, dword [ecx + 0x2c]
push esi
mov esi, dword [ecx + 0x24]
push edi
mov edi, dword [ecx + 0x30]
mov dword [esp + 0x34], edi
mov edi, dword [ecx + 0x34]
mov dword [esp + 0x2c], edi
mov edi, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ecx
je 0x4129e4
mov ecx, dword [eax + 4]
test ecx, ecx
mov edi, dword [eax + 8]
je 0x4129e4
xor eax, eax
rep stosd dword es:[edi], eax
test edx, edx
je 0x4129f6
mov ecx, dword [edx + 4]
test ecx, ecx
mov edi, dword [edx + 8]
je 0x4129f6
xor eax, eax
rep stosd dword es:[edi], eax
test esi, esi
je 0x412a08
mov ecx, dword [esi + 4]
test ecx, ecx
mov edi, dword [esi + 8]
je 0x412a08
xor eax, eax
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x412a1a
mov ecx, dword [ebx + 4]
test ecx, ecx
mov edi, dword [ebx + 8]
je 0x412a1a
xor eax, eax
rep stosd dword es:[edi], eax
test ebp, ebp
je 0x412a2c
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edi, dword [ebp + 8]
je 0x412a2c
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x412a42
mov ecx, dword [eax + 4]
test ecx, ecx
mov edi, dword [eax + 8]
je 0x412a42
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x412a58
mov ecx, dword [eax + 4]
test ecx, ecx
mov edi, dword [eax + 8]
je 0x412a58
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x412a6e
mov ecx, dword [eax + 4]
test ecx, ecx
mov edi, dword [eax + 8]
je 0x412a6e
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x412a84
mov ecx, dword [eax + 4]
test ecx, ecx
mov edi, dword [eax + 8]
je 0x412a84
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x68], 0x7f7fffff
mov dword [esp + 0x6c], 0x7f7fffff
mov dword [esp + 0x70], 0x7f7fffff
mov dword [esp + 0x5c], 0xff7fffff
mov dword [esp + 0x60], 0xff7fffff
mov dword [esp + 0x64], 0xff7fffff
mov ecx, 0x10
mov edi, 0x1042c30
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x1042c70
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x1042cb0
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x1042cf0
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x1042d30
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x13], 0
je 0x412f17
mov eax, 0x1042bf8
mov ecx, 0x18
xor ebp, ebp
nop
mov dword [eax - 8], ebp
mov dword [eax - 4], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
add eax, 0x10
dec ecx
jne 0x412b10
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x14]
xor bl, bl
cmp eax, ebp
mov dword [esp + 0x3c], eax
jbe 0x412efd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
mov edi, dword [ecx + ebp*4]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x412d43
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x412b5a
lea esi, [edi + 0x2c]
jmp 0x412b60
mov esi, dword [eax + 8]
add esi, 0x14
mov edx, dword [esi]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, 0x1042c30
je 0x412b7e
mov ebx, dword [ecx]
or dword [eax], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x412b71
mov edx, dword [esi + 4]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, 0x1042c70
je 0x412b9d
mov ebx, dword [ecx]
or dword [eax], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x412b90
mov edx, dword [esi + 8]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, 0x1042cb0
je 0x412bbd
nop
mov ebx, dword [ecx]
or dword [eax], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x412bb0
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, 0x1042cf0
je 0x412bdd
nop
mov ebx, dword [ecx]
or dword [eax], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x412bd0
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, 0x1042d30
je 0x412bfd
nop
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412bf0
mov eax, dword [edi + 0x20]
test eax, eax
mov bl, 1
je 0x412d43
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
mov dword [esp + 0x14], 0x41700000
jne 0x412c24
mov dword [esp + 0x14], 0
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call dword [edx + 0x24]
fld dword [esp + 0x44]
fsub dword [esp + 0x14]
mov al, byte [esp + 0x13]
test al, al
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fsub dword [esp + 0x14]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fsub dword [esp + 0x14]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fadd dword [esp + 0x14]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd dword [esp + 0x14]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fadd dword [esp + 0x14]
fstp dword [esp + 0x58]
je 0x412d0e
fld dword [esp + 0x44]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 5
jp 0x412ca1
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], ecx
fld dword [esp + 0x50]
fcomp dword [esp + 0x5c]
fnstsw ax
test ah, 0x41
jne 0x412cb8
mov edx, dword [esp + 0x50]
mov dword [esp + 0x5c], edx
fld dword [esp + 0x48]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 5
jp 0x412ccf
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
fld dword [esp + 0x54]
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x412ce6
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x60], ecx
fld dword [esp + 0x4c]
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 5
jp 0x412cfd
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x70], edx
fld dword [esp + 0x58]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x412d43
jmp 0x412d3b
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jb 0x412b36
test bl, bl
je 0x412efd
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x20], 0xe
mov ebp, dword [esp + 0x1c]
je 0x412e61
mov esi, dword [ebp + 4]
test esi, esi
mov eax, dword [0x668618]
mov edx, dword [ebp + 8]
mov ecx, 0x1042c30
je 0x412d96
mov edi, edi
mov edi, dword [edx]
mov ebx, dword [ecx]
not edi
and edi, ebx
mov dword [eax], edi
add eax, 4
add ecx, 4
add edx, 4
dec esi
jne 0x412d80
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx + 4]
test esi, esi
mov eax, dword [0x668628]
mov edx, dword [ebx + 8]
mov ecx, 0x1042c70
je 0x412dc5
mov edi, edi
mov edi, dword [edx]
not edi
and edi, dword [ecx]
add eax, 4
mov dword [eax - 4], edi
add ecx, 4
add edx, 4
dec esi
jne 0x412db0
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 4]
test esi, esi
mov eax, dword [0x668638]
mov edx, dword [edi + 8]
mov ecx, 0x1042cb0
je 0x412df9
lea ecx, [ecx]
mov ebp, dword [edx]
not ebp
and ebp, dword [ecx]
add eax, 4
mov dword [eax - 4], ebp
add ecx, 4
add edx, 4
dec esi
jne 0x412de0
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov ecx, dword [0x668618]
je 0x412e1d
lea ecx, [ecx]
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412e10
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov ecx, dword [0x668628]
je 0x412e3e
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412e31
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov ecx, dword [0x668638]
je 0x412e69
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412e52
jmp 0x412e69
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov edx, dword [ebp + 4]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, 0x1042c30
je 0x412e85
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412e78
mov edx, dword [ebx + 4]
test edx, edx
mov eax, dword [ebx + 8]
mov ecx, 0x1042c70
je 0x412ea1
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412e94
mov edx, dword [edi + 4]
test edx, edx
mov eax, dword [edi + 8]
mov ecx, 0x1042cb0
je 0x412ebd
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412eb0
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov ecx, 0x1042cf0
je 0x412edd
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412ed0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov ecx, 0x1042d30
je 0x412efd
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412ef0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x412f17
add eax, 0xfffffff8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x412b03
mov edx, dword [esp + 0x1c]
test edx, edx
mov esi, dword [esp + 0x38]
je 0x412f3d
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, dword [esi + 8]
je 0x412f3d
mov edi, dword [ecx]
or dword [eax], edi
add eax, 4
add ecx, 4
dec edx
jne 0x412f30
mov edx, dword [esp + 0x24]
test edx, edx
je 0x412f5f
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, dword [esi + 8]
je 0x412f5f
mov edi, dword [ecx]
or dword [eax], edi
add eax, 4
add ecx, 4
dec edx
jne 0x412f52
mov edx, dword [esp + 0x28]
test edx, edx
je 0x412f81
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
test edx, edx
mov eax, dword [esi + 8]
je 0x412f81
mov esi, dword [ecx]
or dword [eax], esi
add eax, 4
add ecx, 4
dec edx
jne 0x412f74
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x412fe4
mov edx, dword [esp + 0x30]
test edx, edx
je 0x412fe4
mov esi, dword [esp + 0x20]
test esi, esi
je 0x412fe4
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x412fae
cmp dword [eax], 0
jne 0x412fd9
add eax, 4
dec ecx
jne 0x412fa3
mov ecx, dword [edx + 4]
test ecx, ecx
mov eax, dword [edx + 8]
je 0x412fc3
cmp dword [eax], 0
jne 0x412fd9
add eax, 4
dec ecx
jne 0x412fb8
mov ecx, esi
call fcn.0040b150
test al, al
je 0x412fd9
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
and ecx, 0xfffffffe
jmp 0x412fe2
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
or ecx, 1
mov dword [eax], ecx
mov al, byte [esp + 0x13]
test al, al
pop edi
pop esi
pop ebp
pop ebx
je 0x413007
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x413007
mov eax, dword [ecx]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x5c]
push edx
call dword [eax + 0x14]
add esp, 0x64
ret 8