Function at 0x4f47d0
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 0x4f47f4
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 0x4f484a
movzx eax, byte [eax + 0x10]
and eax, 2
test eax, 0xfffffffe
jne 0x4f484a
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 0x4f484a
movzx eax, byte [eax + 0x10]
and eax, 2
test eax, 0xfffffffe
jne 0x4f484a
inc edx
cmp edx, 0x400
jl 0x4f47fc
cmp edx, 0x400
jne 0x4f4854
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 0x4f4899
push 1
call fcn.004f3d50
mov ecx, 0x74c0b0
push 1
push 4
call fcn.004e2a54
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.00526004
cmp eax, 1
je 0x4f48d3
mov edx, dword [esp + 8]
mov eax, edi
movsx eax, word [edx + eax*2 + 0x66b628]
test eax, eax
jl 0x4f48e2
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 0x4f48d3
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 0x4f4954
mov ecx, dword [edx + eax*2 + 0x66b6a0]
call fcn.004dbc10
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.004dbf60
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 0x4f496b
mov eax, dword [esp + 0xc]
cmp ax, word [0x65f518]
jle 0x4f498f
test ecx, ecx
je 0x4f4974
call fcn.004dbc10
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
call fcn.004dbf60
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 0x4f4bd8
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.00526004
cmp eax, 1
je 0x4f4d44
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 0x4f4d35
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 0x4f4aad
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 0x4f4bfd
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 0x4f4c18
push dword [ebp + 0x1b]
push dword [ebp + 0xc]
mov ecx, ebp
call fcn.004f4410
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 0x4f4c38
lea esi, [edx + eax + 0x10]
mov edx, dword [edi + 0x88]
cmp esi, edx
jae 0x4f4cfc
mov dword [esp + 0x14], ebp
movsx ebx, word [esi]
mov eax, ebx
and eax, 0xff
jne 0x4f4c5a
mov bl, 1
jmp 0x4f4c98
test eax, eax
jle 0x4f4c69
cmp eax, 0xb7
jg 0x4f4c69
mov bl, 2
jmp 0x4f4c98
cmp eax, 0xe0
jl 0x4f4c84
cmp eax, 0xef
jg 0x4f4c84
test bh, 0x20
je 0x4f4c80
mov bl, 2
jmp 0x4f4c98
xor bl, bl
jmp 0x4f4c98
cmp eax, 0xc0
jl 0x4f4c96
cmp eax, 0xfe
jg 0x4f4c96
mov bl, 2
jmp 0x4f4c98
xor bl, bl
test bl, bl
jne 0x4f4ca5
xor ebp, ebp
cmp bl, 2
jne 0x4f4cb9
jmp 0x4f4cdb
mov ecx, esi
call fcn.00504664
mov ebp, eax
cmp bl, 2
je 0x4f4d29
mov edx, dword [edi + 0x88]
mov ecx, dword [edi + 0x80]
add ecx, 0x80
mov ebx, 1
mov eax, dword [0x65f514]
jmp 0x4f4cd5
add ecx, 0x70
inc ebx
cmp ecx, esi
jbe 0x4f4cd1
jmp 0x4f4d17
mov ecx, dword [esp + 0x14]
push dword [ecx + 0x17]
push esi
call fcn.004f89b4
test eax, eax
je 0x4f4d08
add esi, ebp
mov edx, dword [edi + 0x88]
cmp esi, edx
jb 0x4f4c4a
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 0x4f4cd1
cmp ecx, edx
jae 0x4f4d25
add ecx, ebp
mov esi, ecx
jmp 0x4f4cf4
test ebp, ebp
jge 0x4f4cdb
mov edx, dword [edi + 0x88]
jmp 0x4f4cb9
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