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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x18
mov ebp, ecx
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x4f47ec
mov eax, 1
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x1b], esi
xor edx, edx
lea eax, [edx + edx*8]
lea eax, [edx + eax*4]
lea edi, [eax + eax]
mov eax, dword [edi + eax*2 + 0x66b6ac]
test eax, eax
je 0x4f4842
movzx eax, byte [eax + 0x10]
and eax, 2
test eax, 0xfffffffe
jne 0x4f4842
inc edx
lea eax, [edx + edx*8]
lea eax, [edx + eax*4]
lea edi, [eax + eax]
mov eax, dword [edi + eax*2 + 0x66b6ac]
test eax, eax
je 0x4f4842
movzx eax, byte [eax + 0x10]
and eax, 2
test eax, 0xfffffffe
jne 0x4f4842
inc edx
cmp edx, 0x400
jl 0x4f47f4
cmp edx, 0x400
jne 0x4f484c
xor edx, edx
movsx edx, dx
mov word [ebp + 0x21], dx
lea eax, [edx + edx*8]
lea edi, [edx + eax*4]
mov dword [esp + 4], edi
lea eax, [edi + edi]
mov dword [esp + 8], eax
lea edx, [eax + edi*2 + 0x66b620]
mov dword [esp], edx
mov dword [eax + edi*2 + 0x66b6ac], ebp
xor edx, edx
mov word [ebp + 0x1f], dx
mov al, byte [ebp + 0x10]
and al, 0xfd
mov byte [ebp + 0x10], al
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4f4891
push 1
call fcn.004f3d48
mov ecx, 0x74c0b0
push 1
push 4
call fcn.004e2a04
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push eax
push esi
mov esi, dword [esp + 8]
push esi
mov ecx, ebx
call fcn.00526044
cmp eax, 1
je 0x4f48cb
mov edx, dword [esp + 8]
mov eax, edi
movsx eax, word [edx + eax*2 + 0x66b628]
test eax, eax
jl 0x4f48da
mov eax, 1
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov edi, edx
mov esi, dword [esp + 4]
movzx edx, word [edi + esi*2 + 0x66b62a]
cmp edx, 0x10
jne 0x4f48cb
neg eax
movsx esi, ax
mov dword [esp + 0xc], esi
mov edi, 1
mov dword [esp + 0x10], edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
cmp esi, dword [edx + eax*2 + 0x66b6a4]
jle 0x4f494c
mov ecx, dword [edx + eax*2 + 0x66b6a0]
call fcn.004dbbc0
mov eax, esi
lea ecx, [eax + eax]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
call fcn.004dbf10
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esi + edx*2 + 0x66b6a0], eax
mov eax, dword [esp + 0xc]
mov dword [esi + edx*2 + 0x66b6a4], eax
mov ecx, dword [0x65f514]
test ecx, ecx
je 0x4f4963
mov eax, dword [esp + 0xc]
cmp ax, word [0x65f518]
jle 0x4f4987
test ecx, ecx
je 0x4f496c
call fcn.004dbbc0
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
call fcn.004dbf10
mov dword [0x65f514], eax
mov eax, dword [esp + 0xc]
mov word [0x65f518], ax
mov eax, dword [esp + 8]
mov edi, dword [esp + 4]
mov edi, dword [eax + edi*2 + 0x66b6a0]
mov eax, dword [esp]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [edi + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [edi + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [edi + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [edi + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [edi + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [edi + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [edi + 0x28], edx
mov edx, dword [eax + 0x2c]
mov dword [edi + 0x2c], edx
mov edx, dword [eax + 0x30]
mov dword [edi + 0x30], edx
mov edx, dword [eax + 0x34]
mov dword [edi + 0x34], edx
mov edx, dword [eax + 0x38]
mov dword [edi + 0x38], edx
mov edx, dword [eax + 0x3c]
mov dword [edi + 0x3c], edx
mov edx, dword [eax + 0x40]
mov dword [edi + 0x40], edx
mov edx, dword [eax + 0x44]
mov dword [edi + 0x44], edx
mov edx, dword [eax + 0x48]
mov dword [edi + 0x48], edx
mov edx, dword [eax + 0x4c]
mov dword [edi + 0x4c], edx
mov edx, dword [eax + 0x50]
mov dword [edi + 0x50], edx
mov edx, dword [eax + 0x54]
mov dword [edi + 0x54], edx
mov edx, dword [eax + 0x58]
mov dword [edi + 0x58], edx
mov edx, dword [eax + 0x5c]
mov dword [edi + 0x5c], edx
mov edx, dword [eax + 0x60]
mov dword [edi + 0x60], edx
mov edx, dword [eax + 0x64]
mov dword [edi + 0x64], edx
mov edx, dword [eax + 0x68]
mov dword [edi + 0x68], edx
mov edx, dword [eax + 0x6c]
mov dword [edi + 0x6c], edx
mov edx, dword [eax + 0x70]
mov dword [edi + 0x70], edx
mov edx, dword [eax + 0x74]
mov dword [edi + 0x74], edx
mov esi, dword [eax + 0x78]
mov dword [edi + 0x78], esi
mov edx, dword [eax + 0x7c]
mov dword [edi + 0x7c], edx
lea esi, [edi + 0x80]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [edx + eax*2 + 0x66b6a8], esi
mov edx, dword [edi + 4]
mov dword [ebp + 4], edx
mov edx, dword [edi + 0xc]
movzx eax, word [edi + 0xa]
add eax, 0xfffffff0
mov esi, 1
mov dword [esp], esi
mov esi, dword [0x65f514]
mov word [esi], ax
mov eax, dword [esp + 0xc]
cmp eax, 1
jle 0x4f4bd0
lea esi, [edi + 0x10]
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x10]
add esi, 0x80
add edi, 0x80
mov eax, dword [esp + 0x34]
push eax
push edx
push edi
mov ecx, dword [esp + 0x38]
call fcn.00526044
cmp eax, 1
je 0x4f4d3c
mov edx, dword [edi + 0xc]
movzx eax, word [edi + 0xa]
add eax, 0xfffffff0
mov ecx, dword [0x65f514]
mov ebp, dword [esp]
mov word [ecx + ebp*2], ax
inc ebp
mov dword [esp], ebp
movsx eax, bx
cmp ax, word [edi + 8]
jne 0x4f4d2d
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + ebp*2 + 0x66b6a8]
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esi + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x24]
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x34]
mov dword [eax + 0x34], ecx
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x38], ecx
mov ecx, dword [esi + 0x3c]
mov dword [eax + 0x3c], ecx
mov ecx, dword [esi + 0x40]
mov dword [eax + 0x40], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax + 0x44], ecx
mov ecx, dword [esi + 0x48]
mov dword [eax + 0x48], ecx
mov ecx, dword [esi + 0x4c]
mov dword [eax + 0x4c], ecx
mov ecx, dword [esi + 0x50]
mov dword [eax + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 0x54], ecx
mov ecx, dword [esi + 0x58]
mov dword [eax + 0x58], ecx
mov ecx, dword [esi + 0x5c]
mov dword [eax + 0x5c], ecx
mov ecx, dword [esi + 0x60]
mov dword [eax + 0x60], ecx
mov ecx, dword [esi + 0x64]
mov dword [eax + 0x64], ecx
mov ecx, dword [esi + 0x68]
mov dword [eax + 0x68], ecx
mov ecx, dword [esi + 0x6c]
mov dword [eax + 0x6c], ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + ebp*2 + 0x66b6a8]
add eax, 0x70
mov dword [ecx + ebp*2 + 0x66b6a8], eax
inc ebx
movsx eax, bx
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jl 0x4f4aa5
mov ebp, dword [esp + 0x14]
mov al, byte [ebp + 0x10]
or al, 2
mov byte [ebp + 0x10], al
movsx edx, word [ebp + 0x21]
test edx, edx
jl 0x4f4bf5
lea eax, [edx + edx*8]
lea edx, [edx + eax*4]
lea ebx, [edx + edx]
lea eax, [ebx + ebx]
cmp ebp, dword [ebx + edx*2 + 0x66b6ac]
je 0x4f4c10
push dword [ebp + 0x1b]
push dword [ebp + 0xc]
mov ecx, ebp
call fcn.004f4408
movsx edx, word [ebp + 0x21]
lea eax, [edx + edx*8]
lea eax, [edx + eax*4]
add eax, eax
add eax, eax
lea edi, [eax + 0x66b620]
mov eax, dword [eax + 0x66b6a0]
lea esi, [eax + 0x10]
mov edx, dword [0x65f514]
movsx edx, word [edx]
test edx, edx
jl 0x4f4c30
lea esi, [edx + eax + 0x10]
mov edx, dword [edi + 0x88]
cmp esi, edx
jae 0x4f4cf4
mov dword [esp + 0x14], ebp
movsx ebx, word [esi]
mov eax, ebx
and eax, 0xff
jne 0x4f4c52
mov bl, 1
jmp 0x4f4c90
test eax, eax
jle 0x4f4c61
cmp eax, 0xb7
jg 0x4f4c61
mov bl, 2
jmp 0x4f4c90
cmp eax, 0xe0
jl 0x4f4c7c
cmp eax, 0xef
jg 0x4f4c7c
test bh, 0x20
je 0x4f4c78
mov bl, 2
jmp 0x4f4c90
xor bl, bl
jmp 0x4f4c90
cmp eax, 0xc0
jl 0x4f4c8e
cmp eax, 0xfe
jg 0x4f4c8e
mov bl, 2
jmp 0x4f4c90
xor bl, bl
test bl, bl
jne 0x4f4c9d
xor ebp, ebp
cmp bl, 2
jne 0x4f4cb1
jmp 0x4f4cd3
mov ecx, esi
call fcn.005046a4
mov ebp, eax
cmp bl, 2
je 0x4f4d21
mov edx, dword [edi + 0x88]
mov ecx, dword [edi + 0x80]
add ecx, 0x80
mov ebx, 1
mov eax, dword [0x65f514]
jmp 0x4f4ccd
add ecx, 0x70
inc ebx
cmp ecx, esi
jbe 0x4f4cc9
jmp 0x4f4d0f
mov ecx, dword [esp + 0x14]
push dword [ecx + 0x17]
push esi
call fcn.004f89f4
test eax, eax
je 0x4f4d00
add esi, ebp
mov edx, dword [edi + 0x88]
cmp esi, edx
jb 0x4f4c42
xor eax, eax
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov eax, 1
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
movsx ebp, word [eax + ebx*2]
test ebp, ebp
jl 0x4f4cc9
cmp ecx, edx
jae 0x4f4d1d
add ecx, ebp
mov esi, ecx
jmp 0x4f4cec
test ebp, ebp
jge 0x4f4cd3
mov edx, dword [edi + 0x88]
jmp 0x4f4cb1
mov eax, 1
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov eax, 1
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret 0xc