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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4f4008]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [ebx], 0
mov dword [esp + 0x6c], esi
je 0x412b65
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x412b65
nop dword [eax]
mov eax, dword [edx + 0xc]
mov eax, dword [esi + eax*4 + 0x57158]
test ecx, ecx
jne 0x412b14
test eax, eax
jne 0x412b65
jmp 0x412b3b
cmp ecx, 1
jne 0x412b1f
test eax, eax
je 0x412b65
jmp 0x412b3b
cmp ecx, 2
jne 0x412b2e
test eax, eax
je 0x413659
jmp 0x412b3b
cmp ecx, 3
jne 0x412b3b
test eax, eax
jne 0x413659
mov edx, dword [edx + 4]
test edx, edx
jne 0x412b00
test ecx, ecx
je 0x413659
cmp ecx, 1
je 0x413659
cmp ecx, 2
je 0x412b65
cmp ecx, 3
je 0x412b65
test eax, eax
je 0x413659
cmp dword [ebx + 0x14], 0
je 0x412b7a
mov eax, dword [ebx + 0x18]
cmp eax, dword [esi + 0x56f70]
jne 0x413659
mov edi, dword [ebx + 0xc]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x412b9d
push dword [esi + 0x200]
push ecx
call fcn.00413690
test eax, eax
je 0x413659
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x412bd4
cmp dword [esi + 0x56fb4], 6
jne 0x412bba
push dword [esi + 0x208]
jmp 0x412bc6
mov eax, dword [esi + 0x264]
push dword [eax + 0x260]
push ecx
call fcn.00413690
test eax, eax
je 0x413659
mov eax, dword [ebx + 0x54]
lea ecx, [ebx + 0x54]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x412bf3
push ecx
mov ecx, esi
call fcn.004147d0
test eax, eax
je 0x413659
mov eax, dword [ebx + 0x50]
lea ecx, [ebx + 0x50]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x412c12
push ecx
mov ecx, esi
call fcn.00414580
test eax, eax
je 0x413659
cmp dword [ebx + 0x1c], 0
je 0x412c8f
mov ecx, dword [ebx + 0x28]
mov eax, dword [esi + 0x5712c]
test ecx, ecx
jne 0x412c3f
test eax, eax
je 0x412c67
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
cmp ecx, 1
jne 0x412c5e
cmp eax, ecx
je 0x412c67
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x413659
cmp dword [ebx + 0x2c], 0
je 0x412c72
mov edi, dword [esi + 0xc]
jmp 0x412c75
mov edi, dword [esi + 8]
push dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
call fcn.004447d0
push eax
push edi
call fcn.004157a0
test eax, eax
je 0x413659
cmp dword [ebx + 0x30], 0
je 0x412ce1
mov ecx, dword [ebx + 0x34]
call fcn.004447d0
mov ecx, dword [ebx + 0x38]
mov edx, dword [esi + 0x10]
test ecx, ecx
jne 0x412cb0
cmp edx, eax
sete cl
test ecx, ecx
jmp 0x412cdb
cmp ecx, 1
jne 0x412cc0
xor ecx, ecx
cmp edx, eax
setge cl
test ecx, ecx
jmp 0x412cdb
cmp ecx, 2
jne 0x412cd0
xor ecx, ecx
cmp edx, eax
setl cl
test ecx, ecx
jmp 0x412cdb
cmp ecx, 3
jne 0x413659
cmp edx, eax
je 0x413659
cmp dword [ebx + 0x3c], 0
je 0x412d71
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
test ecx, ecx
jne 0x412cf8
push ecx
jmp 0x412d1a
cmp ecx, 1
jne 0x412d08
push 0
push eax
push dword [esi + 0x28c]
jmp 0x412d21
cmp ecx, 2
jne 0x412d18
push 0
push eax
push dword [esi + 0x290]
jmp 0x412d21
push 1
push eax
push dword [esi + 0x1fc]
call fcn.00415850
mov ecx, dword [ebx + 0x40]
mov edi, eax
call fcn.004447d0
mov ecx, dword [ebx + 0x44]
test ecx, ecx
jne 0x412d40
cmp edi, eax
sete cl
test ecx, ecx
jmp 0x412d6b
cmp ecx, 1
jne 0x412d50
xor ecx, ecx
cmp edi, eax
setge cl
test ecx, ecx
jmp 0x412d6b
cmp ecx, 2
jne 0x412d60
xor ecx, ecx
cmp edi, eax
setl cl
test ecx, ecx
jmp 0x412d6b
cmp ecx, 3
jne 0x413659
cmp edi, eax
je 0x413659
cmp dword [ebx + 0x260], 0
je 0x412df1
mov eax, dword [ebx + 0x264]
test eax, eax
jne 0x412d8b
mov eax, dword [0x509164]
jmp 0x412de9
cmp eax, 1
jne 0x412d9d
xor eax, eax
cmp dword [0x509164], eax
sete al
jmp 0x412de9
cmp eax, 2
jne 0x412daf
xor eax, eax
cmp dword [esi + 0x571c4], eax
setg al
jmp 0x412de9
cmp eax, 3
jne 0x412dc1
xor eax, eax
cmp dword [esi + 0x571c4], eax
sete al
jmp 0x412de9
cmp eax, 4
jne 0x412dd3
xor eax, eax
cmp dword [esi + 0x4f1e0], eax
setg al
jmp 0x412de9
cmp eax, 5
jne 0x412de5
xor eax, eax
cmp dword [esi + 0x4f1e0], eax
sete al
jmp 0x412de9
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x413659
cmp dword [ebx + 0x278], 0
je 0x412e15
push dword [ebx + 0x27c]
mov ecx, esi
push dword [ebx + 0x280]
call fcn.00414120
test eax, eax
je 0x413659
cmp dword [ebx + 0xe0], 0
je 0x412f96
mov ecx, dword [ebx + 0xe4]
cmp ecx, 0xffffffff
jne 0x412e3e
mov eax, dword [0x4fbe54]
mov edi, dword [eax + 0x4f174]
mov dword [esp + 0x10], edi
jmp 0x412e61
cmp ecx, 0x270f
je 0x413659
call fcn.004447d0
mov ecx, dword [0x4fbe54]
push eax
call fcn.0040d510
mov edi, eax
mov dword [esp + 0x10], eax
test edi, edi
je 0x413659
mov ecx, dword [ebx + 0xe8]
call fcn.004447d0
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
js 0x413659
mov ecx, dword [ebx + 0xec]
mov eax, dword [ebx + 0xf0]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0x34], eax
lea eax, [ebx + 0xfc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0xf4]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x168]
test ecx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x48]
sete al
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
push edx
mov edx, dword [edi + 0x4c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edi
call fcn.00414340
add esp, 8
cmp dword [esp + 0x38], 0
je 0x412ef9
mov eax, dword [esp + 0x18]
jmp 0x412f8e
mov eax, dword [esp + 0x20]
mov edi, 1
cmp eax, edi
jl 0x412f85
dec eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x28]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x48]
sub edx, edi
call fcn.00414340
add esp, 8
cmp dword [esp + 0x38], 0
jne 0x412ef0
mov eax, dword [esp + 0x14]
inc edi
dec eax
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x20]
jle 0x412f13
mov eax, dword [esp + 0x1c]
mov edi, 1
nop dword [eax]
lea ecx, [esp + 0x28]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x48]
add edx, edi
call fcn.00414340
add esp, 8
cmp dword [esp + 0x38], 0
jne 0x412ef0
mov eax, dword [esp + 0x1c]
inc edi
dec eax
mov dword [esp + 0x1c], eax
cmp edi, dword [esp + 0x20]
jle 0x412f50
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
test eax, eax
je 0x413659
cmp dword [ebx + 0x16c], 0
je 0x41309f
mov ecx, dword [ebx + 0x170]
cmp ecx, 0xffffffff
jne 0x412fbb
mov eax, dword [0x4fbe54]
mov edi, dword [eax + 0x4f174]
jmp 0x412fda
cmp ecx, 0x270f
je 0x413659
call fcn.004447d0
mov ecx, dword [0x4fbe54]
push eax
call fcn.0040d510
mov edi, eax
test edi, edi
je 0x413659
mov ecx, dword [ebx + 0x174]
call fcn.004447d0
cmp dword [edi + 0x274], eax
jne 0x413659
cmp dword [ebx + 0x178], 0
je 0x41300a
mov edi, dword [edi + 0x278]
jmp 0x413010
mov edi, dword [edi + 0x27c]
cmp edi, 0xfffffffe
je 0x413659
mov eax, dword [ebx + 0x180]
xor edx, edx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x41307a
nop dword [eax]
mov ecx, dword [ecx + 4]
inc edx
test ecx, ecx
jne 0x413030
test edx, edx
je 0x41307a
nop dword [eax]
cmp edi, dword [eax + 0xc]
je 0x41304e
mov eax, dword [eax + 4]
test eax, eax
jne 0x413040
jmp 0x413053
mov eax, 1
mov edx, dword [ebx + 0x17c]
test edx, edx
jne 0x413066
test eax, eax
je 0x413072
lea ecx, [edx + 1]
jmp 0x413072
cmp edx, 1
jne 0x413072
test eax, eax
mov eax, edx
cmove ecx, eax
test ecx, ecx
je 0x413659
push edi
mov ecx, esi
call fcn.0040d510
test eax, eax
je 0x413659
lea edx, [ebx + 0x184]
mov ecx, eax
call fcn.00430ea0
test eax, eax
je 0x413659
cmp dword [ebx + 0x1f0], 0
je 0x413128
mov ecx, dword [ebx + 0x1f4]
cmp ecx, 0xffffffff
jne 0x4130c5
mov ecx, dword [0x4fbe54]
mov edi, dword [ecx + 0x4f174]
jmp 0x4130e4
cmp ecx, 0x270f
je 0x413659
call fcn.004447d0
mov ecx, dword [0x4fbe54]
push eax
call fcn.0040d510
mov edi, eax
test edi, edi
je 0x413659
mov ecx, dword [ebx + 0x1f8]
call fcn.004447d0
cmp dword [ebx + 0x1fc], 0
mov ecx, eax
mov edx, dword [edi + 0x280]
je 0x413111
xor eax, eax
cmp edx, ecx
sete al
jmp 0x413120
cmp edx, ecx
mov eax, 0
mov ecx, 1
cmovne eax, ecx
test eax, eax
je 0x413659
cmp dword [ebx + 0x268], 0
je 0x41316f
mov eax, dword [ebx + 0x26c]
xor edx, edx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x41316f
mov ecx, dword [ecx + 4]
inc edx
test ecx, ecx
jne 0x413145
test edx, edx
je 0x41316f
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0xc]
je 0x413162
mov eax, dword [eax + 4]
test eax, eax
jne 0x413154
jmp 0x413167
mov eax, 1
test eax, eax
je 0x413659
cmp dword [ebx + 0x270], 0
je 0x41323a
mov eax, dword [esi + 0x56f84]
mov edi, dword [ebx + 0x274]
mov esi, dword [eax + 8]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 8
push edi
mov word [esp + 0x5c], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push 0x400
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
push ecx
push 0x4bf520
push esi
mov dword [0x5093d8], edi
mov dword [esp + 0x3c], str.sys_isCondition
call dword [eax + 0x14]
test eax, eax
js 0x413220
push 0
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 1
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], 0
push ecx
push 1
push 0x800
lea eax, [esp + 0x70]
mov dword [esp + 0x64], 0
push 0x4bf520
push dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
push dword [esp + 0x60]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp word [esp + 0x30], 0xffff
jne 0x413659
mov esi, dword [esp + 0x6c]
cmp dword [ebx + 0x24c], 0
je 0x413295
mov ecx, dword [ebx + 0x250]
call fcn.004447d0
mov ecx, dword [ebx + 0x254]
mov edx, dword [esi + 0x14]
test ecx, ecx
jne 0x413264
cmp edx, eax
sete cl
test ecx, ecx
jmp 0x41328f
cmp ecx, 1
jne 0x413274
xor ecx, ecx
cmp edx, eax
setge cl
test ecx, ecx
jmp 0x41328f
cmp ecx, 2
jne 0x413284
xor ecx, ecx
cmp edx, eax
setl cl
test ecx, ecx
jmp 0x41328f
cmp ecx, 3
jne 0x413659
cmp edx, eax
je 0x413659
cmp dword [ebx + 0x258], 0
je 0x4132e4
mov ecx, dword [ebx + 0x25c]
call fcn.004447d0
mov ecx, eax
cmp ecx, 0x64
jge 0x4132e4
test ecx, ecx
jle 0x413659
imul eax, dword [0x4fbf9c], 0x343fd
mov edi, 0x64
add eax, 0x269ec3
mov dword [0x4fbf9c], eax
shr eax, 0x10
and eax, 0x7fff
cdq
idiv edi
cmp ecx, edx
jl 0x413659
cmp dword [ebx + 0x200], 0
lea eax, [ebx + 0x200]
je 0x41338f
mov ecx, dword [eax + 0x44]
cmp ecx, 0xffffffff
jne 0x41330d
mov edi, dword [0x4fbe54]
mov edx, dword [edi + 0x4f174]
jmp 0x413334
cmp ecx, 0x270f
je 0x413659
call fcn.004447d0
mov edi, dword [0x4fbe54]
mov ecx, edi
push eax
call fcn.0040d510
mov edx, eax
lea eax, [ebx + 0x200]
mov dword [esp + 0x14], edx
test edx, edx
je 0x413659
mov ecx, dword [eax + 0x48]
cmp ecx, 0xffffffff
jne 0x413350
mov ecx, dword [edi + 0x4f174]
jmp 0x413375
cmp ecx, 0x270f
je 0x413659
call fcn.004447d0
push eax
mov ecx, edi
call fcn.0040d510
mov edx, dword [esp + 0x14]
mov ecx, eax
lea eax, [ebx + 0x200]
test ecx, ecx
je 0x413659
push 0
push eax
push ecx
push edx
call fcn.00413f10
test eax, eax
je 0x413659
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
je 0x4133b7
nop dword [eax]
push edi
mov ecx, esi
call fcn.00413e50
test eax, eax
je 0x413659
mov edi, dword [edi + 4]
test edi, edi
jne 0x4133a0
cmp dword [ebx + 0x58], 0
je 0x41343e
xor edi, edi
cmp dword [ebx + 0x5c], edi
je 0x41353c
mov ecx, dword [ebx + 0x60]
cmp ecx, 0xffffffff
jne 0x4133e1
mov eax, dword [0x4fbe54]
mov esi, dword [eax + 0x4f174]
jmp 0x4133fc
cmp ecx, 0x270f
je 0x413436
call fcn.004447d0
mov ecx, dword [0x4fbe54]
push eax
call fcn.0040d510
mov esi, eax
test esi, esi
je 0x413436
push dword [ebx + 0x74]
mov edx, dword [ebx + 0x78]
mov ecx, esi
call fcn.00430e70
add esp, 4
test eax, eax
je 0x413436
mov ecx, dword [0x4fbe54]
lea eax, [ebx + 0x7c]
push eax
push esi
call fcn.00414ad0
test eax, eax
je 0x413436
push dword [ebx + 0x68]
push dword [ebx + 0x70]
push esi
call fcn.00414760
mov edi, eax
test edi, edi
je 0x413659
cmp dword [ebx + 0x284], 0
je 0x41366f
mov eax, dword [ebx + 0x28c]
xor edx, edx
mov ecx, dword [0x4fbe54]
xor edi, edi
mov dword [esp + 0x10], edx
test al, 1
je 0x41347c
mov eax, dword [ecx + 0x1fc]
mov edx, 1
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x28c]
mov dword [esp + 0x10], edx
test al, 2
je 0x413495
mov eax, dword [ecx + 0x28c]
mov dword [esp + edx*4 + 0x78], eax
inc edx
mov eax, dword [ebx + 0x28c]
mov dword [esp + 0x10], edx
test al, 4
je 0x4134a8
mov eax, dword [ecx + 0x290]
mov dword [esp + edx*4 + 0x78], eax
inc edx
mov dword [esp + 0x10], edx
xor eax, eax
mov dword [esp + 0x14], eax
test edx, edx
je 0x413503
mov eax, dword [esp + eax*4 + 0x78]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4134f6
push dword [ebx + 0x294]
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0
push dword [ebx + 0x298]
mov dword [esp + 0x78], 0
push esi
call fcn.00422f50
test eax, eax
je 0x4134eb
inc edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4134c0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x4134b2
mov ecx, dword [ebx + 0x288]
call fcn.004447d0
mov ecx, dword [ebx + 0x290]
test ecx, ecx
jne 0x413602
cmp edi, eax
sete cl
xor eax, eax
test ecx, ecx
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x64]
xor ecx, ecx
mov dword [esp + 0x10], ecx
test dl, 1
je 0x41355d
mov eax, dword [esi + 0x1fc]
mov ecx, 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x10], ecx
test dl, 2
je 0x413571
mov eax, dword [esi + 0x28c]
mov dword [esp + ecx*4 + 0x6c], eax
inc ecx
mov dword [esp + 0x10], ecx
test dl, 4
je 0x413585
mov eax, dword [esi + 0x290]
mov dword [esp + ecx*4 + 0x6c], eax
inc ecx
mov dword [esp + 0x10], ecx
xor edi, edi
test ecx, ecx
je 0x413659
nop
mov eax, dword [esp + edi*4 + 0x6c]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4135e7
nop
push dword [ebx + 0x74]
mov edx, dword [ebx + 0x78]
mov ecx, esi
call fcn.00430e70
add esp, 4
test eax, eax
je 0x4135dc
mov ecx, dword [0x4fbe54]
lea eax, [ebx + 0x7c]
push eax
push esi
call fcn.00414ad0
test eax, eax
je 0x4135dc
push dword [ebx + 0x68]
push dword [ebx + 0x70]
push esi
call fcn.00414760
test eax, eax
jne 0x41343e
mov esi, dword [esi + 4]
test esi, esi
jne 0x4135a0
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, ecx
jl 0x413590
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
cmp ecx, 1
jne 0x413629
xor ecx, ecx
cmp edi, eax
setge cl
xor eax, eax
test ecx, ecx
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
cmp ecx, 2
jne 0x413650
xor ecx, ecx
cmp edi, eax
setl cl
xor eax, eax
test ecx, ecx
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
cmp ecx, 3
jne 0x413659
cmp edi, eax
jne 0x41366f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x84]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4