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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], edx
lea ebx, [ebp + 8]
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0xb8
call fcn.004032f4
push 0x20
mov eax, dword [ebx]
lea edx, [eax + 0x68]
mov eax, dword [ebp - 4]
add eax, 0x78
mov ecx, 0xf
call fcn.0040d4a4
mov edx, dword [ebx]
mov word [edx + eax*2 + 0x68], 0
mov eax, dword [ebp - 4]
add eax, 0x68
mov edx, 0x10
call fcn.0041898c
mov edx, dword [ebx]
mov word [edx + 0x44], ax
mov eax, dword [ebp - 4]
add eax, 0x68
mov edx, 0x10
call fcn.00418aa0
mov esi, dword [ebx]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x60], 0x80
setne al
mov byte [esi + 0x20], al
test al, al
je 0x4cf38b
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xfe]
mov dword [esi + 0x24], eax
jmp 0x4cf392
mov dword [esi + 0x24], 0x20
mov ecx, dword [ebx]
cmp byte [ecx + 0x20], 0
je 0x4cf3c8
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x150]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esi + 4]
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
jmp 0x4cf3dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
add ecx, 0xa
mov eax, 1
shl eax, cl
mov esi, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [ebp - 4]
movzx esi, word [eax + 0x58]
cmp si, 0x80
jb 0x4cf42b
movzx eax, si
cmp eax, 0x10000
ja 0x4cf42b
movzx eax, si
call fcn.00411328
test al, al
jne 0x4cf436
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x80
jmp 0x4cf442
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov eax, dword [ebx]
mov dword [eax + 0x10], edx
cmp dword [eax + 8], 0x800
jae 0x4cf466
mov dword [eax + 0x28], 2
mov dword [eax + 0x2c], 0
jmp 0x4cf474
mov dword [eax + 0x28], 1
mov dword [eax + 0x2c], 0
cmp dword [ebp + 0x18], 0
jne 0x4cf47e
cmp dword [ebp + 0x14], 0
je 0x4cf5ba
cmp dword [ebp + 0x10], 0
je 0x4cf5ba
cmp dword [ebp + 0x10], 1
je 0x4cf4ba
cmp dword [ebp + 0x10], 2
je 0x4cf4ba
cmp dword [ebp + 0x10], 4
je 0x4cf4ba
cmp dword [ebp + 0xc], 1
je 0x4cf4b6
cmp dword [ebp + 0xc], 2
je 0x4cf4b6
cmp dword [ebp + 0xc], 4
je 0x4cf4b6
xor eax, eax
jmp 0x4cf4bc
mov al, 1
jmp 0x4cf4bc
xor eax, eax
test al, al
je 0x4cf4c4
mov al, 1
jmp 0x4cf4e6
cmp dword [ebp + 0x10], 1
je 0x4cf4e4
cmp dword [ebp + 0x10], 2
je 0x4cf4e4
cmp dword [ebp + 0xc], 1
je 0x4cf4e0
cmp dword [ebp + 0xc], 2
je 0x4cf4e0
xor eax, eax
jmp 0x4cf4e6
mov al, 1
jmp 0x4cf4e6
xor eax, eax
test al, al
je 0x4cf5ba
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
cmp edx, 0
jne 0x4cf506
cmp eax, 0
jae 0x4cf56b
jmp 0x4cf508
jge 0x4cf56b
mov esi, dword [ebx]
mov eax, dword [esi + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4cf53b
mov eax, dword [esi + 8]
sub eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
push edx
push eax
mov eax, dword [ebp - 8]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4cf5a6
mov esi, dword [ebx]
mov eax, dword [esi + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
call fcn.00405210
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
call fcn.0040517c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, 1
adc edx, 0
mov ecx, dword [ebx]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x60]
and edx, 0xfffffffb
mov eax, dword [ebx]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x64]
mov dword [eax + 0x34], edx
test byte [eax + 0x31], 2
je 0x4cf5ed
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 0x174]
mov edx, 1
shl edx, cl
mov dword [eax + 0x38], edx
jmp 0x4cf5f4
mov dword [eax + 0x38], 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x104]
mov eax, dword [ebx]
mov dword [eax + 0x3c], edx
mov edx, dword [ebp + 0x1c]
mov dword [eax], edx
mov edx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x48], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x50], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x54], edx
mov esi, dword [ebx]
mov eax, dword [esi + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0xb0]
mov edx, dword [esi + 0xb4]
call fcn.00405158
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov dword [eax + 0x60], edx
mov edx, dword [eax + 0x5c]
mov dword [eax + 0x64], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c