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

Disassembly:
sub esp, 0x18
push ebp
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 8], ebp
cmp edi, ebp
jne 0x4cf0ae
pop edi
mov eax, 0xffffff9a
pop ebp
add esp, 0x18
ret
cmp dword [edi + 0x3c], ebp
je 0x4cf0a3
cmp dword [edi + 0x9c], 8
push ebx
push esi
mov dword [edi + 0x44], ebp
jne 0x4cf110
cmp dword [edi + 0xa0], ebp
jne 0x4cf110
lea ebx, [edi + 0x40]
lea esp, [esp]
cmp dword [edi + 0x50], 0
jne 0x4cf0ed
mov esi, edi
call fcn.004cee80
lea eax, [edi + 0xa4]
mov dword [edi + 0x50], 0x10000
mov dword [edi + 0x4c], eax
mov esi, dword [edi + 0x54]
push 4
push ebx
call fcn.004da682
mov ecx, dword [edi + 0x54]
sub ecx, esi
add dword [edi + 0x7c], ecx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4cf0d0
cmp ebp, 1
jne 0x4cf110
xor ebp, ebp
or ebx, 0xffffffff
cmp dword [edi + 0x7c], 0
jbe 0x4cf12a
test ebp, ebp
jne 0x4cf12a
mov esi, edi
call fcn.004cee80
cmp eax, ebx
jne 0x4cf12a
mov ebp, ebx
cmp dword [edi + 0x9c], 8
jne 0x4cf155
cmp dword [edi + 0xa0], 0
jne 0x4cf17c
lea edx, [edi + 0x40]
push edx
call fcn.004da67c
add esp, 4
test ebp, ebp
jne 0x4cf14e
mov ebp, eax
mov dword [edi + 0x78], 0
cmp dword [edi + 0xa0], 0
jne 0x4cf17c
mov eax, dword [edi + 0x100a8]
mov ecx, dword [edi + 0x100c8]
mov edx, dword [edi + 0x100cc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov eax, dword [edi + 0x100e0]
cdq
add eax, dword [edi + 0x100c0]
adc edx, dword [edi + 0x100c4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edx, edx
ja 0x4cf1c1
jb 0x4cf1a1
cmp eax, ebx
jae 0x4cf1c1
cmp dword [esp + 0x34], 0
ja 0x4cf1c1
jb 0x4cf1b0
cmp dword [esp + 0x30], ebx
jae 0x4cf1c1
cmp dword [edi + 0x84], 0
ja 0x4cf1c1
cmp dword [edi + 0x80], ebx
jb 0x4cf1e1
mov eax, dword [edi + 0x88]
add eax, 4
mov byte [eax], 0x2d
mov byte [eax + 1], 0
mov eax, dword [edi + 0x88]
add eax, 6
mov byte [eax], 0x2d
mov byte [eax + 1], 0
mov eax, dword [edi + 0x88]
mov edx, dword [esp + 0x38]
xor ecx, ecx
add eax, 0x10
mov byte [eax], dl
shrd edx, ecx, 8
mov dword [esp + 0x24], ecx
shr ecx, 8
mov byte [eax + 1], dl
shrd edx, ecx, 8
shr ecx, 8
mov byte [eax + 2], dl
shrd edx, ecx, 8
shr ecx, 8
mov byte [eax + 3], dl
shrd edx, ecx, 8
shr ecx, 8
or edx, ecx
je 0x4cf225
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0x1c]
mov cl, 0xff
test eax, eax
ja 0x4cf238
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
jb 0x4cf24e
mov eax, dword [edi + 0x88]
add eax, 0x14
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov byte [eax + 3], cl
jmp 0x4cf28a
mov ecx, dword [edi + 0x88]
add ecx, 0x14
mov byte [ecx], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4cf288
mov dword [ecx], 0xffffffff
mov cl, 0xff
cmp dword [edi + 0x6c], 1
jne 0x4cf2a0
mov eax, dword [edi + 0x88]
add eax, 0x24
mov byte [eax], 1
mov byte [eax + 1], 0
mov esi, dword [esp + 0x34]
test esi, esi
ja 0x4cf2b1
mov edx, dword [esp + 0x30]
cmp edx, 0xffffffff
jb 0x4cf2c7
mov eax, dword [edi + 0x88]
add eax, 0x18
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov byte [eax + 3], cl
jmp 0x4cf303
mov ecx, dword [edi + 0x88]
add ecx, 0x18
mov byte [ecx], dl
mov eax, esi
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4cf303
mov dword [ecx], 0xffffffff
or ecx, 0xffffffff
test esi, esi
ja 0x4cf310
cmp dword [esp + 0x30], ecx
jb 0x4cf317
mov eax, 8
jmp 0x4cf31b
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0
ja 0x4cf328
cmp dword [esp + 0x18], ecx
jb 0x4cf32b
add eax, 8
cmp dword [edi + 0x84], 0
ja 0x4cf33c
cmp dword [edi + 0x80], ecx
jb 0x4cf33f
add eax, 8
test ax, ax
jle 0x4cf540
cwde
mov dword [esp + 0x2c], eax
add eax, 4
cmp eax, dword [edi + 0x94]
jbe 0x4cf365
pop esi
pop ebx
pop edi
mov eax, 0xffffff99
pop ebp
add esp, 0x18
ret
mov ecx, dword [edi + 0x88]
add ecx, dword [edi + 0x90]
mov eax, dword [esp + 0x2c]
cdq
mov byte [ecx], 1
mov byte [ecx + 1], 0
add ecx, 2
mov byte [ecx], al
shrd eax, edx, 8
shr edx, 8
mov byte [ecx + 1], al
shrd eax, edx, 8
shr edx, 8
or eax, edx
je 0x4cf39d
or eax, 0xffffffff
mov word [ecx], ax
mov edx, dword [esp + 0x30]
add ecx, 2
test esi, esi
ja 0x4cf3ad
cmp edx, 0xffffffff
jb 0x4cf40d
mov byte [ecx], dl
mov eax, esi
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 4], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 5], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 6], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 7], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4cf40a
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
add ecx, 8
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x18]
ja 0x4cf41d
cmp edx, 0xffffffff
jb 0x4cf47f
mov eax, dword [esp + 0x1c]
mov byte [ecx], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 4], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 5], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 6], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 7], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4cf47c
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
add ecx, 8
mov eax, dword [edi + 0x84]
mov edx, dword [edi + 0x80]
test eax, eax
ja 0x4cf494
cmp edx, 0xffffffff
jb 0x4cf4ef
mov byte [ecx], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 1], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 2], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 3], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 4], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 5], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 6], dl
shrd edx, eax, 8
shr eax, 8
mov byte [ecx + 7], dl
shrd edx, eax, 8
shr eax, 8
or edx, eax
je 0x4cf4ef
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax + 4]
add dword [edi + 0x90], edx
mov ecx, 0xfffffffc
sub ecx, eax
add dword [edi + 0x94], ecx
add eax, 4
add dword [edi + 0x8c], eax
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0x8c]
xor ecx, ecx
add eax, 0x1e
mov byte [eax], dl
shrd edx, ecx, 8
shr ecx, 8
mov byte [eax + 1], dl
shrd edx, ecx, 8
shr ecx, 8
or edx, ecx
je 0x4cf540
or ecx, 0xffffffff
mov word [eax], cx
test ebp, ebp
jne 0x4cf560
mov edx, dword [edi + 0x90]
mov eax, dword [edi + 0x88]
push edx
push eax
lea ecx, [edi + 0x34]
push ecx
call fcn.004cd800
add esp, 0xc
mov ebp, eax
mov edx, dword [edi + 0x88]
push edx
call dword [0x6ab248]
add esp, 4
test ebp, ebp
jne 0x4cf76e
test byte [edi + 0x10104], 2
jne 0x4cf6bc
mov eax, dword [edi + 0x30]
push eax
push edi
call fcn.004c7110
mov ecx, dword [edi + 0x80]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x84]
add ecx, 0xe
push ebp
adc edx, ebp
push edx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x30]
push ecx
push eax
push edi
call fcn.004c70b0
add esp, 0x1c
test eax, eax
je 0x4cf5c1
or ebp, 0xffffffff
jmp 0x4cf5dd
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov ebx, dword [edi + 0x30]
push ecx
push edx
mov esi, 4
call fcn.004cd8f0
add esp, 8
mov ebp, eax
cmp dword [esp + 0x34], 0
ja 0x4cf62f
jb 0x4cf5ed
cmp dword [esp + 0x30], 0xffffffff
jae 0x4cf62f
cmp dword [esp + 0x1c], 0
ja 0x4cf62f
jb 0x4cf5fd
cmp dword [esp + 0x18], 0xffffffff
jae 0x4cf62f
test ebp, ebp
jne 0x4cf69c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [edi + 0x30]
push eax
push ecx
lea esi, [ebp + 4]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4cf69c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
jmp 0x4cf68f
mov eax, dword [edi + 0x100bc]
mov ecx, dword [edi + 0x100b8]
test eax, eax
ja 0x4cf643
test ecx, ecx
jbe 0x4cf69c
add ecx, 4
push 0
adc eax, 0
push eax
push ecx
mov ecx, dword [edi + 0x30]
push ecx
push edi
call fcn.004c70b0
add esp, 0x14
test eax, eax
je 0x4cf663
or ebp, 0xffffffff
jmp 0x4cf69c
test ebp, ebp
jne 0x4cf69c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebx, dword [edi + 0x30]
push edx
push eax
lea esi, [ebp + 8]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4cf69c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ebx, dword [edi + 0x30]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x30]
push 0
push eax
push ecx
push edx
push edi
call fcn.004c70b0
add esp, 0x14
test eax, eax
je 0x4cf6bc
or ebp, 0xffffffff
test byte [edi + 0x98], 8
je 0x4cf76e
test ebp, ebp
jne 0x4cf6fe
mov ebx, dword [edi + 0x30]
push ebp
push 0x8074b50
lea esi, [ebp + 4]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4cf6fe
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov ebx, dword [edi + 0x30]
push eax
push ecx
call fcn.004cd8f0
add esp, 8
mov ebp, eax
cmp dword [edi + 0x100b0], 0
je 0x4cf735
test ebp, ebp
jne 0x4cf76e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [edi + 0x30]
push edx
push eax
lea esi, [ebp + 8]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4cf76e
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x4cf761
test ebp, ebp
jne 0x4cf76e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [edi + 0x30]
push eax
push ecx
lea esi, [ebp + 4]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4cf76e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
mov ebx, dword [edi + 0x30]
call fcn.004cd8f0
mov ebp, eax
add esp, 8
add dword [edi + 0x100f8], 1
pop esi
mov eax, 0
adc dword [edi + 0x100fc], eax
pop ebx
mov dword [edi + 0x3c], eax
pop edi
mov eax, ebp
pop ebp
add esp, 0x18
ret