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

Disassembly:
sub esp, 0x29c
push ebx
mov ebx, dword [esp + 0x2a4]
push ebp
push esi
push edi
mov eax, dword [ebx + 4]
xor esi, esi
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x48], eax
push 0x38
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], edi
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], ebp
shl eax, 4
add eax, edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x74]
push eax
call sub.MSVCRT.dll_memset
movzx eax, byte [ebp + 0x10]
add esp, 0xc
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
add eax, 8
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x40], eax
cmp edi, dword [esp + 0x18]
jae 0x4f5ac5
mov bx, word [esp + 0x6c]
mov edx, 0x200
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x4f5ac7
test word [edi + 0xc], dx
je 0x4f5aa5
mov edx, dword [edi + 0x1c]
mov ecx, dword [edx + 0x198]
mov eax, dword [edx + 0x19c]
and ecx, dword [ebp + 8]
and eax, dword [ebp + 0xc]
or ecx, eax
je 0x4f5abf
mov eax, dword [edx + 0xc]
lea edi, [esp + 0x50]
mov esi, dword [esp + 0x2b0]
mov dword [esp + 0x38], 1
lea ecx, [eax + eax*2]
shl ecx, 4
lea eax, [esp + 0xa4]
add ecx, dword [edx + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], 0
mov ebp, dword [edx + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x4f5a10
mov ecx, 0x400
test word [ebp + 0xc], cx
je 0x4f5735
mov eax, dword [ebp + 0x1c]
jmp 0x4f5777
mov ecx, dword [esp + 0x40]
cmp dword [ebp + 0x14], ecx
jne 0x4f59f4
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x114], eax
lea eax, [esp + 0x114]
mov dword [esp + 0x118], ecx
mov byte [esp + 0x11c], 0x2c
mov dword [esp + 0x120], 1
mov dword [esp + 0x128], ebp
mov esi, dword [esp + 0x2b8]
mov edi, dword [esp + 0x2b4]
mov dword [esp + 0x54], eax
xor eax, eax
mov word [esp + 0xa4], ax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x38], 0
lea eax, [esp + 0x50]
je 0x4f57bf
push dword [esp + 0x2c0]
push dword [esp + 0x2c0]
push esi
push edi
push eax
call fcn.004f5ae0
add esp, 0x14
jmp 0x4f57ca
push esi
push edi
push eax
call fcn.004f4940
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4f57f5
push dword [esp + 0x2c0]
lea eax, [esp + 0x54]
push dword [esp + 0x2c0]
push esi
push edi
push eax
call fcn.004f5620
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
mov si, word [esp + 0xa4]
test si, si
je 0x4f5a05
cmp dword [esp + 0x38], 0
je 0x4f583b
movzx eax, si
shl eax, 4
push eax
lea eax, [esp + 0xb0]
mov word [esp + 0x70], si
push eax
lea eax, [esp + 0x7c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [esp + 0x38], 0
jmp 0x4f59e7
movzx eax, bx
shl eax, 4
push eax
lea eax, [esp + 0x78]
mov word [esp + 0xe0], bx
push eax
lea eax, [esp + 0xec]
push eax
call sub.MSVCRT.dll_memcpy
movzx ecx, word [esp + 0xe8]
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x10], ebx
mov word [esp + 0x6c], bx
mov dword [esp + 0x30], ecx
test ecx, ecx
jle 0x4f59f0
lea edx, [esp + 0xec]
movzx eax, si
mov dword [esp + 0x2c], edx
lea esp, [esp]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x4f59d1
mov ebx, dword [edx - 8]
lea edi, [esp + 0xb4]
movzx eax, word [edx + 2]
movzx ebp, word [edx]
mov edx, dword [edx - 4]
mov dword [esp + 0x44], ebx
mov ebx, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x10], edi
movzx eax, word [edi + 2]
movsx edx, ax
cmp bx, ax
jl 0x4f58fc
movsx ecx, bx
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x4f58dc
mov edi, ebx
jmp 0x4f5926
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x4f58eb
lea eax, [ebx + 1]
movzx edi, ax
jmp 0x4f5926
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bx
movzx edi, ax
jmp 0x4f5926
movsx esi, bx
lea ecx, [esi + 0x31]
cmp edx, ecx
jle 0x4f590a
mov edi, eax
jmp 0x4f5926
lea ecx, [esi + 0x1f]
cmp edx, ecx
jle 0x4f5917
inc eax
movzx edi, ax
jmp 0x4f5926
sub edx, esi
movzx ecx, byte [edx + str._n_n_t_t_b_b_a_a_a]
add cx, ax
movzx edi, cx
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
movsx edx, cx
cmp bp, cx
jl 0x4f595d
movsx ecx, bp
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x4f5943
mov eax, ebp
jmp 0x4f5986
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x4f594f
lea eax, [ebp + 1]
jmp 0x4f5983
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bp
jmp 0x4f5983
movsx esi, bp
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x4f596b
mov eax, ecx
jmp 0x4f5986
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x4f5977
lea eax, [ecx + 1]
jmp 0x4f5983
sub edx, esi
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
push edi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [edi - 4]
or eax, dword [esp + 0x54]
mov ecx, dword [edi - 8]
or ecx, dword [esp + 0x4c]
push eax
push ecx
lea eax, [esp + 0x7c]
push eax
call fcn.004f6a00
mov edx, dword [esp + 0x48]
add edi, 0x10
movzx eax, word [esp + 0xb8]
inc edx
add esp, 0x14
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], edi
cmp edx, eax
jl 0x4f58c2
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add edx, 0x10
dec ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
jne 0x4f5890
mov ebp, dword [esp + 0x28]
mov bx, word [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
add ebp, 0x30
mov dword [esp + 0x28], ebp
cmp ebp, eax
jb 0x4f5725
jmp 0x4f5a10
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov word [esp + 0x6c], bx
mov ebp, dword [esp + 0x24]
mov eax, 1
mov ecx, dword [esp + 0x1c]
xor edi, edi
mov word [ebp + 0x28], ax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
xor eax, eax
mov word [ebp + 0x12], ax
mov byte [ebp + 0x11], al
mov dword [ebp + 0x24], 0x2000
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4f5a98
movzx ebp, bx
lea esi, [esp + 0x7e]
mov ebx, dword [esp + 0x24]
cmp edi, ebp
jge 0x4f5a8c
movzx eax, word [esi - 2]
inc ax
mov word [ebx + 0x14], ax
movzx eax, word [esi]
mov word [ebx + 0x16], ax
mov eax, dword [esi - 0xa]
push ebx
push dword [esp + 0x2b4]
mov dword [ebx], eax
mov eax, dword [esi - 6]
mov dword [ebx + 4], eax
call fcn.004f65c0
add esp, 8
inc edi
add esi, 0x10
test eax, eax
je 0x4f5a54
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, 0x200
add edi, 0x30
mov dword [esp + 0x1c], edi
cmp edi, ecx
jb 0x4f56a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29c
ret
mov eax, dword [esp + 0x14]
jmp 0x4f5a9c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29c
ret