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

Disassembly:
push 0xffffffffffffffff
push 0x54f592
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5b3720]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [0x5662ec]
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov edx, dword [0x5662f4]
xor ebp, ebp
cmp esi, ebp
mov edi, ecx
mov ecx, dword [0x5662f0]
mov dword [esp + 0x5c], eax
mov eax, dword [0x5662f8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
je 0x40d289
mov ecx, dword [esi]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x44]
push edx
push esi
call eax
test eax, eax
jl 0x40d289
mov ecx, dword [esi]
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0x5c]
push edx
push esi
call eax
test eax, eax
jl 0x40d289
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call eax
test eax, eax
jl 0x40d289
push 1
lea ecx, [edi + 0x44]
call fcn.00506d56
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x40d289
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x40ceb5
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x56a77c
push esi
mov dword [esp + 0x20], ebp
xor edi, edi
call eax
test eax, eax
jl 0x40d289
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40cdf1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebp
cmp esi, ebp
jl 0x40d289
cmp ebx, ebp
je 0x40ce3b
mov eax, ebx
mov eax, dword [eax + 0x14]
mov ecx, 0x566c94
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ce2d
cmp dx, bp
je 0x40ce29
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ce2d
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40ce07
xor eax, eax
jmp 0x40ce32
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x40ce3b
mov edi, 1
mov eax, dword [esp + 0x34]
cmp eax, 4
je 0x40ce51
cmp eax, 3
je 0x40ce51
cmp edi, ebp
je 0x40d21b
mov eax, ebx
cmp eax, ebp
je 0x40d300
mov eax, dword [eax + 0x14]
mov ecx, 0x566c94
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ce89
cmp dx, bp
je 0x40ce85
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ce89
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40ce63
xor eax, eax
jmp 0x40ce8e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
mov edi, ebx
jne 0x40cea2
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
mov ecx, edi
call fcn.004a9db0
mov edx, dword [esp + 0x18]
mov esi, edi
mov dword [edi + 0x48], edx
call fcn.004a9d10
jmp 0x40d300
cmp eax, 1
jne 0x40d21b
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push esi
mov dword [esp + 0x44], ebp
call edx
test eax, eax
jl 0x40d289
xor eax, eax
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x34], eax
jbe 0x40d21b
jmp 0x40cef4
mov esi, dword [esp + 0x38]
mov ecx, dword [esi]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
push esi
call eax
test eax, eax
jl 0x40d206
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40cf31
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebp
cmp esi, ebp
jl 0x40d206
lea eax, [esp + 0x4c]
push eax
push 0x56a7cc
call fcn.004066c0
add esp, 8
test eax, eax
jne 0x40cf7b
lea ecx, [esp + 0x4c]
push ecx
push 0x56a7dc
call fcn.004066c0
add esp, 8
test eax, eax
jne 0x40cf7b
lea edx, [esp + 0x4c]
push edx
push 0x56a7ec
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40cfcc
cmp ebx, ebp
jne 0x40cfcc
push 0xe4
call fcn.004fe8de
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebp
mov dword [esp + 0x78], ebp
je 0x40cfa8
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
push ecx
push eax
call fcn.004a8110
jmp 0x40cfaa
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x78], 0xffffffff
mov ebx, eax
je 0x40d265
mov ecx, dword [esp + 0x28]
push eax
add ecx, 0x84
call fcn.00506e4a
mov edi, dword [esp + 0x24]
cmp edi, ebp
je 0x40d01d
mov eax, dword [edi + 0x14]
mov ecx, 0x566c94
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d006
cmp dx, bp
je 0x40d002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d006
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40cfe0
xor eax, eax
jmp 0x40d00b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40d01d
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 8]
mov ecx, edi
call fcn.004a9db0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], ebp
call eax
push 0x566c94
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00405ee0
cmp esi, ebp
mov edi, 1
mov dword [esp + 0x78], edi
jl 0x40d068
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040aff0
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 0x4c]
push eax
push 0x56a7cc
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40d08d
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
jmp 0x40d1f5
lea ecx, [esp + 0x4c]
push ecx
push 0x56a7dc
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40d120
mov esi, dword [esp + 0x14]
call fcn.004a8b70
test eax, eax
je 0x40d0bc
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x38], ebp
jmp 0x40d1ef
mov esi, dword [esp + 0x14]
call fcn.004a8ef0
test eax, eax
je 0x40d0d1
mov dword [ebx + 0xd0], edi
jmp 0x40d106
mov esi, dword [esp + 0x14]
call fcn.004a8fd0
test eax, eax
jne 0x40d100
mov esi, dword [esp + 0x14]
call fcn.004a90b0
test eax, eax
jne 0x40d100
mov esi, dword [esp + 0x14]
call fcn.004a8d30
test eax, eax
je 0x40d106
mov dword [ebx + 0xd8], edi
jmp 0x40d106
mov dword [ebx + 0xd4], edi
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edi
mov edi, dword [esp + 0x14]
mov eax, ebx
call fcn.004a9790
jmp 0x40d1f5
lea edx, [esp + 0x4c]
push edx
push 0x56a7ec
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40d152
mov esi, dword [esp + 0x14]
call fcn.004a8b70
test eax, eax
je 0x40d152
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x28], eax
jmp 0x40d1f5
lea eax, [esp + 0x4c]
push eax
push 0x56a7ec
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40d181
mov esi, dword [esp + 0x14]
call fcn.004a8c50
test eax, eax
je 0x40d181
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x3c], eax
jmp 0x40d1f5
lea ecx, [esp + 0x4c]
push ecx
push 0x56a7ec
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40d1c0
mov esi, dword [esp + 0x14]
call fcn.004a8e10
test eax, eax
je 0x40d1c0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0xdc], edi
mov dword [ebx + 0xe0], eax
mov dword [edx + 0x19c], edi
jmp 0x40d1f5
lea eax, [esp + 0x4c]
push eax
push 0x56a7fc
call fcn.004066c0
add esp, 8
test eax, eax
je 0x40d1f5
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x34], ebp
je 0x40d1f5
cmp dword [eax + 0x80], 4
jne 0x40d1f5
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.004592f0
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
jb 0x40cef0
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x28], ebp
mov eax, dword [esp + 0x38]
je 0x40d237
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
jmp 0x40d244
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
cmp eax, ebp
jl 0x40d300
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x40d28d
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40d279
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x40d289
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x40d305
xor edi, edi
cmp dword [esp + 0x30], ebp
jbe 0x40d300
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebp
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40d2f7
cmp dword [esp + 0x30], 1
ja 0x40d2d0
lea ecx, [esp + 0x5c]
push 0x56a80c
push ecx
call fcn.004066c0
add esp, 8
test eax, eax
jne 0x40d2d0
mov eax, ebx
jmp 0x40d2d2
xor eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
push edx
call fcn.0040ccc0
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40d2f3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebp
je 0x40d289
add edi, 1
cmp edi, dword [esp + 0x30]
jb 0x40d295
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00524c67
add esp, 0x68
ret 8