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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x426200]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], eax
call fcn.00408ba1
test eax, eax
jl 0x4098d7
mov eax, dword [0x428a90]
xor ebx, ebx
mov edi, 0x428a90
mov ecx, edi
mov dword [esp + 0xc], ebx
mov byte [esp + 0x40], 1
call dword [eax]
cmp byte [esp + 0x40], 0
je 0x4098c0
test esi, esi
mov byte [esp + 0x40], 0
je 0x4098a4
cmp dword [esp + 0x18], 0
je 0x4098a4
call fcn.0040a6bb
cmp eax, 0x20
ja 0x409801
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004087af
push dword [eax]
call fcn.0040b808
mov bl, al
mov eax, dword [esp + 0x44]
add esp, 0xc
neg bl
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405ed3
test bl, bl
jne 0x409820
lea eax, [esp + 0x2c]
push esi
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004087af
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
mov ecx, 0x42123c
call fcn.0040b470
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
add esp, 0x18
add eax, 0xfffffff0
call fcn.00405ed3
cmp dword [esp + 0x10], ebx
jl 0x409841
cmp dword [esp + 0x14], ebx
je 0x40985e
push dword [esp + 0x18]
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.00408c6c
lea esi, [esp + 0x48]
call fcn.00408d94
mov ebx, eax
test ebx, ebx
jl 0x409870
mov eax, dword [esp + 0x50]
cmp dword [eax - 0xc], 0
je 0x409746
lea esi, [esp + 0x3c]
lea eax, [esp + 0x48]
call fcn.00408d49
push dword [eax]
call fcn.0040a447
mov edi, dword [esp + 0x10]
mov esi, eax
cmp esi, edi
pop ecx
je 0x4096d9
test edi, edi
je 0x4096d3
call fcn.0040a2b5
mov dword [esp + 0xc], esi
mov edi, esi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.00405ed3
test edi, edi
je 0x409746
mov eax, dword [0x428ac8]
cmp dword [0x428ac4], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jbe 0x409708
call fcn.00410683
mov eax, dword [0x428ac8]
mov ebx, dword [0x428ac4]
cmp ebx, eax
mov esi, 0x428ac0
mov edi, esi
jbe 0x40971e
call fcn.00410683
push dword [esp + 0x10]
lea edx, [esp + 0x20]
push edi
push ebx
push esi
lea eax, [esp + 0x8c]
call fcn.0040aaa7
add esp, 0x10
push dword [eax + 4]
lea esi, [esp + 0x78]
push dword [eax]
call fcn.0040a730
and dword [esp + 0x84], 0
xor eax, eax
lea edi, [esp + 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
test ebx, ebx
jl 0x409894
mov ebx, dword [ebp + 0x14]
push ebx
call fcn.00408c4b
pop ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.0040d400
lea edi, [esp + 0x50]
call fcn.00404490
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00405ed3
push dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push dword [esp + 0x24]
mov dword [esp + 0x5c], ebx
call fcn.0040901d
lea eax, [esp + 0x48]
call fcn.00408e92
mov ebx, eax
test ebx, ebx
jl 0x409894
lea eax, [esp + 0x48]
push eax
call fcn.0040a4e7
pop ecx
lea esi, [esp + 0x48]
mov ebx, eax
call fcn.0040933d
test ebx, ebx
jl 0x40989d
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov edi, 0x428a90
jmp 0x4095cc
mov eax, dword [0x428a90]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x409816
mov edi, ebx
call fcn.0040a2b5
mov eax, 0x80004005
jmp 0x4098d7
mov eax, dword [0x428a90]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [esp + 0xc]
test edi, edi
je 0x409837
call fcn.0040a2b5
mov eax, 0x8000ffff
jmp 0x4098d7
mov eax, dword [0x428a90]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [esp + 0xc]
cmp edi, ebx
je 0x409858
call fcn.0040a2b5
mov eax, dword [esp + 0x10]
jmp 0x4098d7
mov eax, dword [0x428a90]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [esp + 0xc]
cmp edi, ebx
jmp 0x409830
lea esi, [esp + 0x48]
call fcn.0040933d
mov ecx, edi
mov eax, dword [0x428a90]
call dword [eax + 4]
mov edi, dword [esp + 0xc]
test edi, edi
je 0x409890
call fcn.0040a2b5
mov eax, ebx
jmp 0x4098d7
lea esi, [esp + 0x48]
call fcn.0040933d
mov ecx, 0x428a90
jmp 0x40987b
mov eax, dword [0x428a90]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x4098b9
mov edi, ebx
call fcn.0040a2b5
mov eax, 0x80070057
jmp 0x4098d7
mov eax, dword [0x428a90]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x4098d5
mov edi, ebx
call fcn.0040a2b5
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410457
mov esp, ebp
pop ebp
ret 0x10