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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4f3008]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [ebx], 0
mov dword [esp + 0x28], esi
je 0x412ac5
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x412ac5
nop dword [eax]
mov eax, dword [edx + 0xc]
mov eax, dword [esi + eax*4 + 0x57158]
test ecx, ecx
jne 0x412a74
test eax, eax
jne 0x412ac5
jmp 0x412a9b
cmp ecx, 1
jne 0x412a7f
test eax, eax
je 0x412ac5
jmp 0x412a9b
cmp ecx, 2
jne 0x412a8e
test eax, eax
je 0x413491
jmp 0x412a9b
cmp ecx, 3
jne 0x412a9b
test eax, eax
jne 0x413491
mov edx, dword [edx + 4]
test edx, edx
jne 0x412a60
test ecx, ecx
je 0x413491
cmp ecx, 1
je 0x413491
cmp ecx, 2
je 0x412ac5
cmp ecx, 3
je 0x412ac5
test eax, eax
je 0x413491
cmp dword [ebx + 0x14], 0
je 0x412ada
mov eax, dword [ebx + 0x18]
cmp eax, dword [esi + 0x56f70]
jne 0x413491
mov edi, dword [ebx + 0xc]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x412afd
push dword [esi + 0x200]
push ecx
call fcn.004134c0
test eax, eax
je 0x413491
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x412b34
cmp dword [esi + 0x56fb4], 6
jne 0x412b1a
push dword [esi + 0x208]
jmp 0x412b26
mov eax, dword [esi + 0x264]
push dword [eax + 0x260]
push ecx
call fcn.004134c0
test eax, eax
je 0x413491
mov eax, dword [ebx + 0x54]
lea ecx, [ebx + 0x54]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x412b53
push ecx
mov ecx, esi
call fcn.004147d0
test eax, eax
je 0x413491
mov eax, dword [ebx + 0x50]
lea ecx, [ebx + 0x50]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x412b72
push ecx
mov ecx, esi
call fcn.004143d0
test eax, eax
je 0x413491
cmp dword [ebx + 0x1c], 0
je 0x412bef
mov ecx, dword [ebx + 0x28]
mov eax, dword [esi + 0x5712c]
test ecx, ecx
jne 0x412b9f
test eax, eax
je 0x412bc7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
cmp ecx, 1
jne 0x412bbe
cmp eax, ecx
je 0x412bc7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x413491
cmp dword [ebx + 0x2c], 0
je 0x412bd2
mov edi, dword [esi + 0xc]
jmp 0x412bd5
mov edi, dword [esi + 8]
push dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
call fcn.00444060
push eax
push edi
call fcn.004157a0
test eax, eax
je 0x413491
cmp dword [ebx + 0x30], 0
je 0x412c41
mov ecx, dword [ebx + 0x34]
call fcn.00444060
mov ecx, dword [ebx + 0x38]
mov edx, dword [esi + 0x10]
test ecx, ecx
jne 0x412c10
cmp edx, eax
sete cl
test ecx, ecx
jmp 0x412c3b
cmp ecx, 1
jne 0x412c20
xor ecx, ecx
cmp edx, eax
setge cl
test ecx, ecx
jmp 0x412c3b
cmp ecx, 2
jne 0x412c30
xor ecx, ecx
cmp edx, eax
setl cl
test ecx, ecx
jmp 0x412c3b
cmp ecx, 3
jne 0x413491
cmp edx, eax
je 0x413491
cmp dword [ebx + 0x3c], 0
je 0x412cd1
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
test ecx, ecx
jne 0x412c58
push ecx
jmp 0x412c7a
cmp ecx, 1
jne 0x412c68
push 0
push eax
push dword [esi + 0x28c]
jmp 0x412c81
cmp ecx, 2
jne 0x412c78
push 0
push eax
push dword [esi + 0x290]
jmp 0x412c81
push 1
push eax
push dword [esi + 0x1fc]
call fcn.00415850
mov ecx, dword [ebx + 0x40]
mov edi, eax
call fcn.00444060
mov ecx, dword [ebx + 0x44]
test ecx, ecx
jne 0x412ca0
cmp edi, eax
sete cl
test ecx, ecx
jmp 0x412ccb
cmp ecx, 1
jne 0x412cb0
xor ecx, ecx
cmp edi, eax
setge cl
test ecx, ecx
jmp 0x412ccb
cmp ecx, 2
jne 0x412cc0
xor ecx, ecx
cmp edi, eax
setl cl
test ecx, ecx
jmp 0x412ccb
cmp ecx, 3
jne 0x413491
cmp edi, eax
je 0x413491
cmp dword [ebx + 0x260], 0
je 0x412d51
mov eax, dword [ebx + 0x264]
test eax, eax
jne 0x412ceb
mov eax, dword [0x508184]
jmp 0x412d49
cmp eax, 1
jne 0x412cfd
xor eax, eax
cmp dword [0x508184], eax
sete al
jmp 0x412d49
cmp eax, 2
jne 0x412d0f
xor eax, eax
cmp dword [esi + 0x571c4], eax
setg al
jmp 0x412d49
cmp eax, 3
jne 0x412d21
xor eax, eax
cmp dword [esi + 0x571c4], eax
sete al
jmp 0x412d49
cmp eax, 4
jne 0x412d33
xor eax, eax
cmp dword [esi + 0x4f1e0], eax
setg al
jmp 0x412d49
cmp eax, 5
jne 0x412d45
xor eax, eax
cmp dword [esi + 0x4f1e0], eax
sete al
jmp 0x412d49
mov eax, dword [esp + 0x28]
test eax, eax
je 0x413491
cmp dword [ebx + 0x278], 0
je 0x412d75
push dword [ebx + 0x27c]
mov ecx, esi
push dword [ebx + 0x280]
call fcn.00413f30
test eax, eax
je 0x413491
cmp dword [ebx + 0xe0], 0
je 0x412ef6
mov ecx, dword [ebx + 0xe4]
cmp ecx, 0xffffffff
jne 0x412d9e
mov eax, dword [0x4faeb4]
mov edi, dword [eax + 0x4f174]
mov dword [esp + 0x14], edi
jmp 0x412dc1
cmp ecx, 0x270f
je 0x413491
call fcn.00444060
mov ecx, dword [0x4faeb4]
push eax
call fcn.0040d5e0
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
je 0x413491
mov ecx, dword [ebx + 0xe8]
call fcn.00444060
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
js 0x413491
mov ecx, dword [ebx + 0xec]
mov eax, dword [ebx + 0xf0]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0xfc]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0xf4]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x38], 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 + 0x30]
push eax
push edx
mov edx, dword [edi + 0x4c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], edi
call fcn.00414170
add esp, 8
cmp dword [esp + 0x40], 0
je 0x412e59
mov eax, dword [esp + 0x18]
jmp 0x412eee
mov eax, dword [esp + 0x20]
mov edi, 1
cmp eax, edi
jl 0x412ee5
dec eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x48]
sub edx, edi
call fcn.00414170
add esp, 8
cmp dword [esp + 0x40], 0
jne 0x412e50
mov eax, dword [esp + 0x10]
inc edi
dec eax
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x20]
jle 0x412e73
mov eax, dword [esp + 0x1c]
mov edi, 1
nop dword [eax]
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x48]
add edx, edi
call fcn.00414170
add esp, 8
cmp dword [esp + 0x40], 0
jne 0x412e50
mov eax, dword [esp + 0x1c]
inc edi
dec eax
mov dword [esp + 0x1c], eax
cmp edi, dword [esp + 0x20]
jle 0x412eb0
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
test eax, eax
je 0x413491
cmp dword [ebx + 0x16c], 0
je 0x412fff
mov ecx, dword [ebx + 0x170]
cmp ecx, 0xffffffff
jne 0x412f1b
mov eax, dword [0x4faeb4]
mov edi, dword [eax + 0x4f174]
jmp 0x412f3a
cmp ecx, 0x270f
je 0x413491
call fcn.00444060
mov ecx, dword [0x4faeb4]
push eax
call fcn.0040d5e0
mov edi, eax
test edi, edi
je 0x413491
mov ecx, dword [ebx + 0x174]
call fcn.00444060
cmp dword [edi + 0x274], eax
jne 0x413491
cmp dword [ebx + 0x178], 0
je 0x412f6a
mov edi, dword [edi + 0x278]
jmp 0x412f70
mov edi, dword [edi + 0x27c]
cmp edi, 0xfffffffe
je 0x413491
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 0x412fda
nop dword [eax]
mov ecx, dword [ecx + 4]
inc edx
test ecx, ecx
jne 0x412f90
test edx, edx
je 0x412fda
nop dword [eax]
cmp edi, dword [eax + 0xc]
je 0x412fae
mov eax, dword [eax + 4]
test eax, eax
jne 0x412fa0
jmp 0x412fb3
mov eax, 1
mov edx, dword [ebx + 0x17c]
test edx, edx
jne 0x412fc6
test eax, eax
je 0x412fd2
lea ecx, [edx + 1]
jmp 0x412fd2
cmp edx, 1
jne 0x412fd2
test eax, eax
mov eax, edx
cmove ecx, eax
test ecx, ecx
je 0x413491
push edi
mov ecx, esi
call fcn.0040d5e0
test eax, eax
je 0x413491
lea edx, [ebx + 0x184]
mov ecx, eax
call fcn.004308a0
test eax, eax
je 0x413491
cmp dword [ebx + 0x1f0], 0
je 0x413092
mov ecx, dword [ebx + 0x1f4]
cmp ecx, 0xffffffff
jne 0x413025
mov edi, dword [0x4faeb4]
mov eax, dword [edi + 0x4f174]
jmp 0x413044
cmp ecx, 0x270f
je 0x413491
call fcn.00444060
mov edi, dword [0x4faeb4]
mov ecx, edi
push eax
call fcn.0040d5e0
mov dword [esp + 0x10], eax
test eax, eax
je 0x413491
mov ecx, dword [ebx + 0x1f8]
call fcn.00444060
cmp dword [ebx + 0x1fc], 0
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x280]
je 0x413079
xor eax, eax
cmp edx, ecx
sete al
jmp 0x413088
cmp edx, ecx
mov eax, 0
mov ecx, 1
cmovne eax, ecx
test eax, eax
je 0x413491
jmp 0x413098
mov edi, dword [0x4faeb4]
cmp dword [ebx + 0x268], 0
je 0x4130df
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 0x4130df
mov ecx, dword [ecx + 4]
inc edx
test ecx, ecx
jne 0x4130b5
test edx, edx
je 0x4130df
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0xc]
je 0x4130d2
mov eax, dword [eax + 4]
test eax, eax
jne 0x4130c4
jmp 0x4130d7
mov eax, 1
test eax, eax
je 0x413491
cmp dword [ebx + 0x270], 0
je 0x4131b0
mov eax, dword [esi + 0x56f84]
mov edi, dword [ebx + 0x274]
mov esi, dword [eax + 8]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 8
push edi
mov word [esp + 0x64], 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 + 0x74], eax
mov eax, dword [esi]
push ecx
push 0x4bf530
push esi
mov dword [0x5083f8], edi
mov dword [esp + 0x3c], str.sys_isCondition
call dword [eax + 0x14]
test eax, eax
js 0x413190
push 0
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 1
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x68], 0
push ecx
push 1
push 0x800
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], 0
push 0x4bf530
push dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
push dword [esp + 0x68]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp word [esp + 0x38], 0xffff
jne 0x413491
mov esi, dword [esp + 0x28]
mov edi, dword [0x4faeb4]
cmp dword [ebx + 0x24c], 0
je 0x41320b
mov ecx, dword [ebx + 0x250]
call fcn.00444060
mov ecx, dword [ebx + 0x254]
mov edx, dword [esi + 0x14]
test ecx, ecx
jne 0x4131da
cmp edx, eax
sete cl
test ecx, ecx
jmp 0x413205
cmp ecx, 1
jne 0x4131ea
xor ecx, ecx
cmp edx, eax
setge cl
test ecx, ecx
jmp 0x413205
cmp ecx, 2
jne 0x4131fa
xor ecx, ecx
cmp edx, eax
setl cl
test ecx, ecx
jmp 0x413205
cmp ecx, 3
jne 0x413491
cmp edx, eax
je 0x413491
cmp dword [ebx + 0x258], 0
je 0x41325f
mov ecx, dword [ebx + 0x25c]
call fcn.00444060
mov ecx, eax
cmp ecx, 0x64
jge 0x41325f
test ecx, ecx
jle 0x413491
imul eax, dword [0x4fafb8], 0x343fd
mov dword [esp + 0x28], 0x64
add eax, 0x269ec3
mov dword [0x4fafb8], eax
shr eax, 0x10
and eax, 0x7fff
cdq
idiv dword [esp + 0x28]
cmp ecx, edx
jl 0x413491
cmp dword [ebx + 0x200], 0
lea eax, [ebx + 0x200]
je 0x4132fe
mov ecx, dword [eax + 0x44]
cmp ecx, 0xffffffff
jne 0x413282
mov edx, dword [edi + 0x4f174]
jmp 0x4132a3
cmp ecx, 0x270f
je 0x413491
call fcn.00444060
push eax
mov ecx, edi
call fcn.0040d5e0
mov edx, eax
lea eax, [ebx + 0x200]
mov dword [esp + 0x10], edx
test edx, edx
je 0x413491
mov ecx, dword [eax + 0x48]
cmp ecx, 0xffffffff
jne 0x4132bf
mov ecx, dword [edi + 0x4f174]
jmp 0x4132e4
cmp ecx, 0x270f
je 0x413491
call fcn.00444060
push eax
mov ecx, edi
call fcn.0040d5e0
mov edx, dword [esp + 0x10]
mov ecx, eax
lea eax, [ebx + 0x200]
test ecx, ecx
je 0x413491
push 0
push eax
push ecx
push edx
call fcn.00413d20
test eax, eax
je 0x413491
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
je 0x413327
nop dword [eax + eax]
push edi
mov ecx, esi
call fcn.00413c60
test eax, eax
je 0x413491
mov edi, dword [edi + 4]
test edi, edi
jne 0x413310
cmp dword [ebx + 0x58], 0
lea eax, [ebx + 0x58]
je 0x413340
push eax
mov ecx, esi
call fcn.004145b0
test eax, eax
je 0x413491
cmp dword [ebx + 0x284], 0
je 0x4134a7
mov eax, dword [ebx + 0x28c]
xor edx, edx
mov ecx, dword [0x4faeb4]
xor edi, edi
mov dword [esp + 0x14], edx
test al, 1
je 0x41337e
mov eax, dword [ecx + 0x1fc]
mov edx, 1
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x28c]
mov dword [esp + 0x14], edx
test al, 2
je 0x413397
mov eax, dword [ecx + 0x28c]
mov dword [esp + edx*4 + 0x70], eax
inc edx
mov eax, dword [ebx + 0x28c]
mov dword [esp + 0x14], edx
test al, 4
je 0x4133aa
mov eax, dword [ecx + 0x290]
mov dword [esp + edx*4 + 0x70], eax
inc edx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x10], eax
test edx, edx
je 0x413405
mov eax, dword [esp + eax*4 + 0x70]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4133f8
push dword [ebx + 0x294]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push dword [ebx + 0x298]
mov dword [esp + 0x34], 0
push esi
call fcn.00422c90
test eax, eax
je 0x4133ed
inc edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4133c2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x4133b4
mov ecx, dword [ebx + 0x288]
call fcn.00444060
mov ecx, dword [ebx + 0x290]
test ecx, ecx
jne 0x41343a
cmp edi, eax
sete cl
xor eax, eax
test ecx, ecx
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
cmp ecx, 1
jne 0x413461
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 + 0x70]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
cmp ecx, 2
jne 0x413488
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 + 0x70]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
cmp ecx, 3
jne 0x413491
cmp edi, eax
jne 0x4134a7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x7c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4