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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x40], 0xffffffff
mov edi, dword [ebx + 8]
mov edx, dword [ebx]
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], 1
movzx eax, byte [edi + 0x10]
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edx
lea ecx, [eax + eax*8]
mov eax, dword [edx + 4]
lea ecx, [ecx + 1]
test byte [eax + ecx*8 + 0x28], 2
lea ecx, [eax + ecx*8]
mov esi, dword [ecx + 0x10]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
je 0x4fbca8
mov ebx, dword [ecx + 0x44]
jmp 0x4fbd52
test byte [esi + 0x1c], 0x80
je 0x4fbcb6
mov ebx, dword [esi + 8]
jmp 0x4fbd52
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
xorps xmm0, xmm0
lea eax, [esp + 0x3c]
movlpd qword [esp + 0x87], xmm0
mov dword [esp + 0x58], eax
mov eax, 3
or dword [esp + 0x88], eax
mov word [esp + 0x80], ax
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x8f], xmm0
mov byte [esp + 0x97], 0
mov dword [esp + 0x82], 0x10001
mov byte [esp + 0x86], 5
mov dword [esp + 0x5c], esi
mov ax, word [esi + 0x26]
mov word [esp + 0x3c], ax
xor eax, eax
mov word [esp + 0x3e], ax
test byte [ecx + 0x28], 1
jne 0x4fbd4e
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
lea ebx, [esp + 0x50]
mov eax, esi
mov dword [esp + 0x24], ebx
mov esi, 0x1c
add esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
movzx eax, word [eax + 0x26]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x4fbec9
mov eax, 0x1020
test word [edx + 0x28], ax
jne 0x4fbec9
mov eax, dword [edx]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x4fbec9
test byte [ecx + 0x28], 0x4b
jne 0x4fbec9
test byte [esi], 0x80
jne 0x4fbec9
test byte [ecx + 0x24], 0x10
jne 0x4fbec9
mov eax, dword [esp + 0x34]
push dword [esp + 0x28]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x10], eax
call fcn.0047b3c0
movzx eax, ax
add esp, 4
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0xc]
jae 0x4fbec5
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x4fbeaf
push ecx
push ecx
push dword [esp + 0x18]
push esi
call fcn.004f02b0
add esp, 0x10
test eax, eax
je 0x4fbeaf
mov eax, dword [edi + 0x38]
mov ecx, 1
mov edx, dword [esp + 0x20]
mov word [edi + 0x18], cx
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x20], 0
mov dword [eax], esi
mov eax, dword [esp + 0x28]
add eax, ecx
mov word [edi + 0x12], ax
cmp byte [edx + 0x2b], 2
je 0x4fbe5c
mov edx, dword [esp + 0x30]
test dword [edx], 0x4000
jne 0x4fbe5c
add eax, 0x1c
jmp 0x4fbe5f
add eax, 0xffffffe7
movzx eax, ax
mov word [edi + 0x12], ax
test ax, ax
jns 0x4fbe71
xor eax, eax
mov word [edi + 0x12], ax
mov eax, 0x2b
push eax
push ecx
mov word [edi + 0x16], ax
call fcn.004c1850
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x14], ax
mov dword [edi + 0x2c], 0x4000
mov eax, dword [esi + 0x24]
or ecx, dword [esi + 0x20]
or eax, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
call fcn.004fddc0
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x4fbeb3
mov eax, dword [esp + 0x14]
add esi, 0x30
test eax, eax
je 0x4fbde6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop dword [eax]
test ebx, ebx
je 0x4fc2da
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4fbefc
push eax
push dword [esp + 0x38]
movzx eax, byte [ecx + 0x24]
push eax
push dword [ecx + 0x2c]
call fcn.00500550
add esp, 0x10
test eax, eax
je 0x4fc2ac
test dword [ebx + 0x38], 0x200
jne 0x4fc2ac
mov eax, dword [ebx + 8]
xor ecx, ecx
movzx eax, word [eax]
mov dword [edi + 0x18], ecx
mov word [edi + 0x1c], cx
mov dword [edi + 0x30], ecx
mov byte [edi + 0x11], cl
mov word [edi + 0x12], cx
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x16], ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 0x20], ebx
push dword [eax + 0x2c]
push ebx
push dword [ebp + 8]
call fcn.00487000
mov edx, dword [ebx + 0x38]
add esp, 0xc
mov ecx, edx
mov esi, eax
and ecx, 3
mov dword [esp + 0x30], esi
cmp cl, 3
jne 0x4fbfa9
mov eax, dword [esp + 0x38]
xor edx, edx
test esi, esi
movzx ecx, al
mov esi, dword [esp + 0x28]
push esi
push edi
push dword [esp + 0x3c]
cmovne edx, ecx
mov dword [edi + 0x2c], 0x100
lea eax, [esi + 0x10]
mov byte [edi + 0x11], dl
mov word [edi + 0x14], ax
call fcn.004fe070
push edi
push dword [ebp + 8]
call fcn.004fddc0
add esp, 0x14
mov word [edi + 0x16], si
test eax, eax
jne 0x4fc2da
jmp 0x4fc27e
test dl, 0x20
je 0x4fbfbc
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
jmp 0x4fc091
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x24]
and ecx, dword [edx + 0x3c]
and esi, dword [edx + 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4fc008
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push ebx
push dword [eax]
call fcn.004fe640
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [edi + 0x2c], 0x200
test esi, esi
jne 0x4fc01b
cmp ecx, 0x80000000
je 0x4fc032
mov eax, dword [ebx + 0x38]
test eax, 0x1000
je 0x4fc060
test eax, 0x800
jne 0x4fc060
mov eax, esi
or eax, ecx
je 0x4fc066
push dword [edx + 0x2c]
push ebx
push dword [esp + 0x34]
call fcn.004fb780
add esp, 0xc
test eax, eax
je 0x4fc052
or dword [edi + 0x2c], eax
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
jmp 0x4fc0a4
mov eax, esi
or eax, ecx
jne 0x4fc0a4
mov eax, dword [esp + 0x20]
test byte [eax + 0x1c], 0x80
je 0x4fc09d
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x10], 0
jne 0x4fc09d
mov eax, dword [0x713118]
test eax, eax
je 0x4fc0a4
push 0x2bc
call eax
add esp, 4
test eax, eax
je 0x4fc052
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov dword [edi + 0x2c], 0x240
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x4fc113
mov eax, dword [esp + 0x20]
test byte [eax + 0x1c], 0x80
jne 0x4fc113
cmp dword [ebx + 0x24], edx
jne 0x4fc113
mov eax, dword [esp + 0x10]
test byte [eax + 0x28], 2
jne 0x4fc113
mov eax, esi
or eax, ecx
jne 0x4fc27e
test byte [ebx + 0x38], 4
jne 0x4fc27e
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x4fc27e
mov eax, dword [esp + 0x2c]
test byte [eax + 0x28], 4
jne 0x4fc27e
cmp byte [0x71301f], dl
je 0x4fc27e
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x4fc27e
mov eax, dword [esp + 0x38]
xor ecx, ecx
movzx eax, al
test edx, edx
cmovne ecx, eax
mov byte [edi + 0x11], cl
movsx ecx, word [ebx + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x20]
cdq
movsx ecx, word [ecx + 0x28]
idiv ecx
mov ecx, dword [esp + 0x28]
inc eax
add eax, ecx
or esi, dword [esp + 0xc]
mov word [edi + 0x14], ax
je 0x4fc240
lea eax, [ecx + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x2c]
movzx esi, ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x5c], edx
jle 0x4fc22a
mov eax, dword [esp + 0x24]
xor edi, edi
nop dword [eax]
mov ebx, dword [ecx + 0x68]
xorps xmm0, xmm0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x48]
mov dword [esp + 0xb4], edx
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x9c], 0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0x48], eax
mov dword [esp + 0xa0], 0x47e340
test ecx, ecx
je 0x4fc1e9
push ecx
lea eax, [esp + 0xa0]
push eax
call fcn.004e6260
mov eax, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0xc]
cmp word [esp + 0xb0], 0
jne 0x4fc222
movzx ecx, word [ebx + edi + 8]
test cx, cx
jg 0x4fc202
add esi, ecx
jmp 0x4fc20d
dec esi
test byte [ebx + edi + 0xc], 0x82
je 0x4fc20d
sub esi, 0x13
mov ecx, dword [esp + 0x2c]
inc edx
add edi, 0x30
mov dword [esp + 0xc], edx
cmp edx, dword [ecx + 0x5c]
jl 0x4fc180
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
movzx eax, word [edi + 0x14]
push esi
push eax
call fcn.004c1850
mov ecx, dword [esp + 0x30]
add esp, 8
mov word [edi + 0x14], ax
push ecx
push edi
push dword [esp + 0x3c]
call fcn.004fe070
mov eax, dword [esp + 0x1c]
add esp, 0xc
test byte [eax + 0x24], 0x10
je 0x4fc25e
cmp dword [ebx + 0x28], 0
jne 0x4fc26e
push edi
push dword [ebp + 8]
call fcn.004fddc0
add esp, 8
mov ecx, eax
jmp 0x4fc272
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov word [edi + 0x16], ax
test ecx, ecx
jne 0x4fc2d8
mov esi, dword [ebp + 8]
push 0
push ebx
push dword [esp + 0x18]
mov byte [esi + 0x10], 0
push esi
call fcn.004fc2f0
add esp, 0x10
mov dword [esp + 0x14], eax
cmp byte [esi + 0x10], 1
jne 0x4fc2b0
mov ecx, dword [esp + 0x20]
or dword [ecx + 0x1c], 0x100
jmp 0x4fc2b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x28], 2
je 0x4fc2be
xor ebx, ebx
jmp 0x4fc2c1
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x38]
mov dword [esp + 0x24], ebx
test eax, eax
je 0x4fbed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret