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

Disassembly:
sub esp, 0x298
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
mov eax, dword [ebp + 4]
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 0x14]
push edi
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
push 0x38
shl edi, 4
lea eax, [esp + 0x6c]
push 0
add edi, esi
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x64], ebx
call fcn.00585e50
movzx eax, byte [ebx + 0x10]
mov edx, dword [ebp]
lea ecx, [eax + eax*8]
mov eax, dword [edx + 4]
lea eax, [eax + ecx*8 + 8]
mov ecx, dword [eax + 0x2c]
add esp, 0xc
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x18], esi
cmp esi, edi
jae 0x4f4079
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4f407d
mov edx, 0x200
test word [esi + 0xc], dx
je 0x4f4064
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x198]
mov edx, dword [eax + 0x19c]
and ecx, dword [ebx + 8]
and edx, dword [ebx + 0xc]
or ecx, edx
je 0x4f4064
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, dword [eax + 0x14]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x44], edx
lea edx, [esp + 0xa0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], edx
mov edi, dword [eax + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], edi
cmp edi, ecx
jae 0x4f3fe3
mov edi, edi
mov eax, 0x400
test word [edi + 0xc], ax
je 0x4f3ce4
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x34], ecx
jmp 0x4f3d2a
mov edx, dword [esp + 0x54]
cmp dword [edi + 0x14], edx
jne 0x4f3fc9
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
lea edx, [esp + 0x110]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], eax
mov byte [esp + 0x118], 0x2c
mov dword [esp + 0x11c], 1
mov dword [esp + 0x124], edi
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov word [esp + 0xa0], ax
mov edx, dword [ecx + 0x10]
cmp dword [edx + 0x38], eax
mov edx, dword [esp + 0x2b4]
je 0x4f3d6f
mov eax, dword [esp + 0x2bc]
mov ecx, dword [esp + 0x2b8]
push eax
mov eax, dword [esp + 0x2b4]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004e0670
add esp, 0x14
jmp 0x4f3d85
mov eax, dword [esp + 0x2b0]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004f35c0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4f3dbe
mov edx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x2b8]
mov ecx, dword [esp + 0x2b4]
push edx
mov edx, dword [esp + 0x2b4]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004f3bc0
add esp, 0x14
mov dword [esp + 0x10], eax
mov si, word [esp + 0xa0]
test si, si
je 0x4f3fdc
cmp dword [esp + 0x28], 0
je 0x4f3e04
movzx ecx, si
shl ecx, 4
push ecx
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x78]
push eax
mov word [esp + 0x74], si
call fcn.00588d50
add esp, 0xc
mov dword [esp + 0x28], 0
jmp 0x4f3fc9
mov ax, word [esp + 0x68]
movzx ecx, ax
shl ecx, 4
push ecx
lea edx, [esp + 0x74]
mov word [esp + 0xdc], ax
push edx
lea eax, [esp + 0xe8]
push eax
call fcn.00588d50
xor ecx, ecx
mov word [esp + 0x74], cx
movzx ecx, word [esp + 0xe4]
add esp, 0xc
test ecx, ecx
jle 0x4f3fc9
lea edx, [esp + 0xe8]
movzx eax, si
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jmp 0x4f3e60
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x4f3fb7
movzx ebx, word [edx]
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
movzx ebp, word [edx + 2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
lea edi, [esp + 0xb0]
movzx ecx, word [edi + 2]
cmp bp, cx
jl 0x4f3ecc
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x4f3eab
movzx esi, bp
jmp 0x4f3efb
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x4f3eba
lea eax, [ebp + 1]
movzx esi, ax
jmp 0x4f3efb
sub eax, ecx
movzx cx, byte [eax + 0x5eb898]
add cx, bp
movzx esi, cx
jmp 0x4f3efb
movsx edx, bp
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x4f3ede
movzx esi, cx
jmp 0x4f3efb
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x4f3eeb
inc ecx
movzx esi, cx
jmp 0x4f3efb
sub eax, edx
movzx dx, byte [eax + 0x5eb898]
add dx, cx
movzx esi, dx
movzx ecx, word [edi]
cmp bx, cx
jl 0x4f3f36
movsx ecx, cx
movsx eax, bx
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x4f3f15
movzx eax, bx
jmp 0x4f3f69
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x4f3f24
lea eax, [ebx + 1]
movzx eax, ax
jmp 0x4f3f69
sub eax, ecx
movzx cx, byte [eax + 0x5eb898]
add cx, bx
movzx eax, cx
jmp 0x4f3f69
movsx edx, bx
movsx eax, cx
lea ebx, [edx + 0x31]
cmp eax, ebx
jle 0x4f3f48
movzx eax, cx
jmp 0x4f3f65
lea ebx, [edx + 0x1f]
cmp eax, ebx
jle 0x4f3f55
inc ecx
movzx eax, cx
jmp 0x4f3f65
sub eax, edx
movzx dx, byte [eax + 0x5eb898]
add dx, cx
movzx eax, dx
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi - 4]
or ecx, dword [esp + 0x50]
push esi
push eax
mov eax, dword [edi - 8]
or eax, dword [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x78]
push edx
call fcn.004b96e0
mov ecx, dword [esp + 0x30]
movzx eax, word [esp + 0xb4]
inc ecx
add esp, 0x14
add edi, 0x10
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x4f3e90
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x2ac]
add edx, 0x10
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], edx
jne 0x4f3e60
add edi, 0x30
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x64]
jb 0x4f3cd0
jmp 0x4f3fe3
xor eax, eax
mov word [esp + 0x68], ax
mov edx, dword [ebx + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, 1
mov word [ebx + 0x28], cx
mov dword [edx], eax
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x24], 0x2000
mov word [ebx + 0x12], cx
mov byte [ebx + 0x11], cl
mov dword [ebx + 0x18], eax
xor edi, edi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
cmp dword [esp + 0x10], ecx
jne 0x4f4064
movzx ebp, word [esp + 0x68]
lea esi, [esp + 0x7a]
cmp edi, ebp
jge 0x4f405d
mov dx, word [esi - 2]
mov ecx, dword [esi - 0xa]
mov ax, word [esi]
inc dx
mov word [ebx + 0x14], dx
mov edx, dword [esi - 6]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x2ac]
push ebx
mov word [ebx + 0x16], ax
mov dword [ebx + 4], edx
call fcn.004c2e80
add esp, 4
inc edi
add esi, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4f4021
mov ebp, dword [esp + 0x2ac]
mov esi, dword [esp + 0x18]
add esi, 0x30
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x60]
jb 0x4f3c32
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret