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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x20c4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
xor ebp, ebp
lea ecx, [eax + 0x6f4]
push edi
mov edi, dword [esp + 0x64]
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
mov edx, 1
mov ecx, ebp
shl edx, cl
test dword [esp + 0x5c], edx
mov dword [esp + 0x28], edx
je 0x3cfaf7
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop
cmp ebp, ecx
je 0x3cfada
mov ebx, 1
shl ebx, cl
test dword [esp + 0x60], ebx
mov dword [esp + 0x24], ebx
je 0x3cfada
cmp byte [esp + 0x70], 0
je 0x3cfa82
test byte [eax + 8], 8
je 0x3cfa82
mov eax, dword [eax + 0xc0]
mov edx, dword [edi + 0x110]
mov ebp, dword [edi + 0xac]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x114]
add eax, edx
imul eax, ebp
mov dword [esp + 0x20], edx
mov edx, dword [esi - 4]
mov esi, dword [esi]
add edx, ecx
sar eax, 3
add esi, ecx
mov ecx, dword [edi + 0xb0]
mov dword [esp + 0x48], eax
mov eax, ecx
imul ecx, esi
imul eax, edx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
sar eax, 3
sar ecx, 3
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
sar ebx, 3
lea ecx, [esp + 0x40]
lea edx, [esp + 0x30]
mov dword [esp + 0x40], ebx
call fcn.003cf220
test eax, eax
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x54]
je 0x3cfad6
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp dword [esi + 0x20c4c], eax
je 0x3cfa5c
push eax
push esi
call fcn.003b7810
add esp, 8
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x3cfaa3
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x30]
push ecx
add edx, 0x58
push edx
lea eax, [edi + 0x58]
push eax
push ebx
push ebp
push esi
call fcn.003bc350
add esp, 0x18
jmp 0x3cfad1
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x3cfa46
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esi + 0x20d08]
push ecx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x64]
push eax
add eax, 0x58
push eax
lea eax, [edi + 0x58]
push eax
push ecx
push ebp
push edx
push esi
call fcn.003bb850
add esp, 0x28
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x12544]
add ecx, 1
cmp ecx, dword [eax + 0x103ac]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
jbe 0x3cf990
mov ecx, dword [esi + 0x12544]
add dword [esp + 0x1c], 4
add ebp, 1
cmp ebp, dword [ecx + 0x103ac]
mov dword [esp + 0x18], ebp
jbe 0x3cf972
cmp byte [esp + 0x13], 0
je 0x3cfb77
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x3cfb2e
push eax
push esi
call fcn.003b7810
add esp, 8
cmp byte [esp + 0x74], 0
je 0x3cfb3e
push esi
call fcn.003bcd30
add esp, 4
mov edx, dword [esi + 0x11cc4]
cmp byte [edx + 0x18], 0
jne 0x3cfb6f
mov edi, dword [edx]
cmp byte [edi + 0x3d], 0
jne 0x3cfb6f
mov eax, edx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x40]
mov esi, dword [ecx + 0xc]
lea eax, [esi + eax*4]
cmp dword [ecx], eax
jne 0x3cfb6f
cmp dword [edi + 0x11c28], 0
jbe 0x3cfb77
push 0
push edx
call fcn.003c0490
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret