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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ebx, dword [edi]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
add esi, 0x28
mov eax, 8
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.004f76c0
cmp dword [edi + 0x58], 7
mov dword [edi + 0x14], 0
jne 0x4f787a
mov eax, 1
mov byte [ebx + 0x36], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x5d], 1
mov ebx, dword [edi + 0x1c]
mov dword [ebp - 0x10], ebx
jne 0x4f78f0
mov eax, dword [edi + 8]
add eax, 0x168
test byte [eax + 0x1c], 0x10
mov dword [ebp - 0xc], eax
je 0x4f78a6
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
shr ecx, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor ecx, ecx
xor edx, edx
xor eax, eax
cmp dword [ebp - 8], 2
jl 0x4f78d0
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + eax*4]
add ecx, dword [ebx + 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + eax*4 + 4]
add edx, dword [ebx + 4]
mov ebx, dword [ebp - 8]
add eax, 2
dec ebx
cmp eax, ebx
jl 0x4f78b2
cmp eax, dword [ebp - 8]
jge 0x4f78e3
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x10]
add ebx, dword [eax + 4]
jmp 0x4f78e6
mov ebx, dword [ebp - 0x10]
add ecx, edx
add ebx, ecx
lea ebx, [ebx]
mov eax, dword [edi + 0x54]
lea ecx, [eax + 1]
mov dword [edi + 0x54], ecx
cmp eax, ebx
jge 0x4f7958
cmp byte [edi + 0x5d], 2
jne 0x4f790f
mov ecx, dword [edi + 4]
lea edx, [eax + eax*4]
cmp byte [ecx + edx*4], 0x96
jne 0x4f78f0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xe0]
test ecx, ecx
je 0x4f7970
mov dword [edi + 0x58], 9
mov ecx, dword [str.interrupted]
mov dword [ebp + 8], 1
mov eax, str.unknown_error
test ecx, ecx
je 0x4f793b
mov eax, ecx
push eax
push 0x675fac
lea ebx, [edi + 0x34]
mov esi, edx
call fcn.004db2f0
mov eax, dword [ebp + 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0x65
mov eax, dword [ebp + 8]
mov dword [edi + 0x58], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
jge 0x4f7985
mov ecx, dword [edi + 4]
lea edx, [eax + eax*4]
lea ebx, [ecx + edx*4]
mov dword [ebp - 0x10], ebx
jmp 0x4f79b3
mov ebx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
xor edx, edx
cmp eax, ecx
jl 0x4f79a3
sub eax, ecx
mov ecx, dword [ebx + edx*4 + 4]
mov ecx, dword [ecx + 4]
inc edx
cmp eax, ecx
jge 0x4f7995
mov edx, dword [ebx + edx*4]
mov edx, dword [edx]
lea ecx, [eax + eax*4]
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
mov ebx, ecx
cmp byte [edi + 0x5d], 1
jne 0x4f7a6c
mov edx, 4
mov word [esi + 0x1c], dx
cdq
mov dword [esi + 0x10], eax
mov byte [esi + 0x1e], 1
mov dword [esi + 0x14], edx
mov eax, 0xa02
mov word [esi + 0x44], ax
movzx ecx, byte [ebx]
mov eax, dword [ecx*4 + 0x66de78]
mov dword [esi + 0x2c], eax
mov ecx, eax
test eax, eax
je 0x4f7a00
cmp byte [eax], 0
je 0x4f79f8
inc ecx
cmp byte [ecx], 0
jne 0x4f79f2
sub ecx, eax
and ecx, 0x3fffffff
mov dword [esi + 0x40], ecx
mov word [esi + 0x46], 0x103
add esi, 0x50
cmp byte [ebx + 1], 0xee
jne 0x4f7a6c
mov edx, dword [ebp - 8]
lea eax, [edx*4 + 4]
xor ecx, ecx
mov dword [ebp - 0x14], eax
test edx, edx
jle 0x4f7a35
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp - 4]
cmp dword [edi + ecx*4], eax
je 0x4f7a35
inc ecx
cmp ecx, edx
jl 0x4f7a28
cmp ecx, edx
jne 0x4f7a6c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
xor ecx, ecx
test edx, edx
setne cl
push ecx
call fcn.004f5570
add esp, 4
test eax, eax
jne 0x4f7a6c
mov ecx, dword [ebx + 0x10]
mov eax, edi
mov edx, dword [eax + 4]
mov edi, dword [ebp - 8]
mov dword [edx + edi*4], ecx
mov edx, dword [ebp - 0x14]
or word [eax + 0x1c], 0x10
mov dword [eax + 0x18], edx
mov eax, 4
mov word [esi + 0x1c], ax
mov eax, dword [ebx + 4]
mov byte [esi + 0x1e], 1
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov ecx, 4
mov word [esi + 0x44], cx
mov eax, dword [ebx + 8]
cdq
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
mov byte [esi + 0x46], 1
mov edx, ecx
mov word [esi + 0x6c], dx
mov eax, dword [ebx + 0xc]
cdq
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], 1
add esi, 0x78
push 0
lea eax, [ecx + 0x1c]
mov edi, esi
call fcn.004f5570
add esp, 4
test eax, eax
je 0x4f7ad0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 4]
mov eax, 0x602
mov word [esi + 0x1c], ax
mov eax, ebx
call fcn.004f72c0
mov ecx, dword [esi + 4]
mov edi, eax
cmp edi, ecx
je 0x4f7ba0
test edi, edi
jne 0x4f7b39
test byte [esi + 0x1c], 0x40
je 0x4f7b0e
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
mov dword [eax + 4], edx
mov dword [ecx + 0xac], eax
test byte [esi + 0x1c], 0x20
je 0x4f7b1c
mov ebx, dword [esi + 0x10]
call fcn.004e2df0
mov ax, word [esi + 0x1c]
mov ecx, 0xbf01
and ax, cx
or ax, 1
mov word [esi + 0x1c], ax
mov byte [esi + 0x1e], 5
jmp 0x4f7bc4
mov eax, dword [esi]
test eax, eax
je 0x4f7b44
mov eax, dword [eax + 0x4c]
jmp 0x4f7b49
mov eax, 0x3b9aca00
xor ebx, ebx
test eax, eax
js 0x4f7b5b
nop
cmp byte [ebx + edi], 0
je 0x4f7b5b
inc ebx
cmp ebx, eax
jle 0x4f7b50
xor edx, edx
mov dword [ebp - 0x14], 0x202
push esi
cmp edx, 0x4dae50
jne 0x4f7b7a
call fcn.004f5930
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], edi
jmp 0x4f7b84
call fcn.004f5930
mov eax, 0xa02
mov dword [esi + 0x20], 0
mov dword [esi + 4], edi
add esp, 4
mov dword [esi + 0x18], ebx
mov word [esi + 0x1c], ax
mov word [esi + 0x1e], 0x103
jmp 0x4f7bc4
mov eax, ecx
test ecx, ecx
je 0x4f7bbd
cmp byte [ecx], 0
je 0x4f7bb6
jmp 0x4f7bb0
inc eax
cmp byte [eax], 0
jne 0x4f7bb0
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], 1
mov ebx, dword [ebp + 8]
mov byte [esi + 0x1e], 3
cmp byte [ebx + 0x5d], 1
jne 0x4f7c29
push 0
mov eax, 4
lea edi, [esi + 0x28]
call fcn.004f5570
add esp, 4
test eax, eax
jne 0x4f7ac4
mov ecx, dword [ebp - 0x10]
mov eax, 0x602
mov word [esi + 0x44], ax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x40], 2
movzx edx, byte [ecx + 3]
push edx
push str._.2x
push eax
push 3
call fcn.004dc740
mov word [esi + 0x46], 0x103
mov ecx, 1
add esp, 0x10
mov word [esi + 0x6c], cx
mov byte [esi + 0x6e], 5
movzx edx, byte [ebx + 0x5d]
mov ecx, dword [ebx + 8]
dec dx
mov eax, 2
sub ax, dx
add ax, ax
add ax, ax
pop edi
add ecx, 0x28
mov word [ebx + 0x2c], ax
mov dword [ebp + 8], 0x64
mov eax, dword [ebp + 8]
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x58], 0
pop ebx
mov esp, ebp
pop ebp
ret