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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, dword [edi + 8]
mov eax, dword [edi]
add esi, 0x28
lea edx, [ebx + 8]
mov ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esi
call fcn.0046b120
cmp dword [edi + 0x50], 7
mov dword [edi + 0x14], ebx
jne 0x46b22e
mov eax, dword [ebp - 4]
mov byte [eax + 0x40], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x20]
and ecx, 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp ecx, 1
jne 0x46b2d0
mov eax, dword [edi + 8]
add eax, 0x168
mov dword [ebp - 0x18], eax
test byte [eax + 0x1c], 0x10
je 0x46b265
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 4]
shr edx, 2
mov dword [ebp - 8], edx
jmp 0x46b267
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp edx, 2
jl 0x46b2b3
lea eax, [edx - 1]
xor edx, edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov edi, eax
jmp 0x46b290
mov eax, dword [ebx + ecx*4]
add ecx, 2
add edx, dword [eax + 4]
mov eax, dword [ebx + ecx*4 - 4]
add esi, dword [eax + 4]
cmp ecx, edi
jl 0x46b290
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
cmp ecx, edx
mov edx, dword [edi + 0x20]
jge 0x46b2c0
mov eax, dword [ebx + ecx*4]
add edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add edx, eax
mov dword [ebp - 0x10], edx
mov edi, edi
mov edx, dword [edi + 0x4c]
lea eax, [edx + 1]
mov dword [edi + 0x4c], eax
cmp edx, dword [ebp - 0x10]
jge 0x46b603
cmp ecx, 2
jne 0x46b2f6
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4], 0x9d
mov ecx, dword [ebp - 0x14]
jne 0x46b2d0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0
je 0x46b33b
mov dword [edi + 0x50], 9
mov eax, dword [str.interrupted]
test eax, eax
mov ecx, str.unknown_error
cmovne ecx, eax
push ecx
push 0x5e08f0
push dword [ebp - 4]
lea eax, [edi + 0x2c]
push eax
mov esi, 1
call fcn.0044d820
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x20]
cmp edx, eax
jge 0x46b347
mov eax, dword [edi + 4]
jmp 0x46b366
sub edx, eax
mov eax, dword [ebx]
xor ecx, ecx
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x46b361
inc ecx
sub edx, eax
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x46b354
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x58]
and cl, 3
mov dword [ebp - 4], eax
mov eax, 4
cmp cl, 1
jne 0x46b434
mov word [esi + 0x1c], ax
mov eax, edx
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edx, dword [ebp - 4]
mov eax, 0xa02
mov word [esi + 0x44], ax
movzx eax, byte [edx]
mov ecx, dword [eax*4 + 0x5dc8e0]
mov dword [esi + 0x2c], ecx
mov eax, ecx
test ecx, ecx
je 0x46b3c1
cmp byte [ecx], 0
je 0x46b3ba
inc eax
cmp byte [eax], 0
jne 0x46b3b4
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x40], eax
mov byte [esi + 0x46], 1
add esi, 0x50
cmp byte [edx + 1], 0xee
jne 0x46b434
mov ecx, dword [ebp - 8]
lea eax, [ecx*4]
mov dword [ebp - 0x20], eax
lea edx, [eax + 4]
xor eax, eax
mov dword [ebp - 0x14], edx
test ecx, ecx
jle 0x46b3fd
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
cmp dword [ebx + eax*4], edx
je 0x46b3fa
inc eax
cmp eax, ecx
jl 0x46b3f0
mov edx, dword [ebp - 0x14]
cmp eax, ecx
jne 0x46b434
mov ebx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
mov ecx, ebx
push eax
call fcn.004690b0
add esp, 4
test eax, eax
jne 0x46b434
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x14]
or word [ebx + 0x1c], 0x10
mov dword [ebx + 0x18], eax
mov ebx, dword [ebp - 4]
mov ecx, 4
mov word [esi + 0x1c], cx
mov eax, dword [ebx + 4]
cdq
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov word [esi + 0x44], cx
mov eax, dword [ebx + 8]
cdq
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
mov word [esi + 0x6c], cx
mov eax, dword [ebx + 0xc]
cdq
mov dword [esi + 0x64], edx
mov dword [esi + 0x60], eax
add esi, 0x78
lea edx, [ecx + 0x1c]
push 0
mov ecx, esi
call fcn.004690b0
add esp, 4
test eax, eax
jne 0x46b222
mov edx, dword [esi + 4]
mov eax, 0x202
push ecx
mov ecx, ebx
mov word [esi + 0x1c], ax
call fcn.0046ad30
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x46b54e
test eax, eax
jne 0x46b4ea
test byte [esi + 0x1c], 0x40
je 0x46b4c3
mov edx, dword [esi + 0x10]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xb4]
mov dword [edx + 4], eax
mov dword [ecx + 0xb4], edx
test byte [esi + 0x1c], 0x20
je 0x46b4d1
mov ecx, dword [esi + 0x10]
call fcn.00456030
mov ax, word [esi + 0x1c]
mov ecx, 0xbe01
and ax, cx
or ax, 1
mov word [esi + 0x1c], ax
jmp 0x46b574
mov ecx, dword [esi]
test ecx, ecx
je 0x46b4f5
mov ecx, dword [ecx + 0x58]
jmp 0x46b4fa
mov ecx, 0x3b9aca00
xor ebx, ebx
test ecx, ecx
js 0x46b50b
cmp byte [ebx + eax], 0
je 0x46b50b
inc ebx
cmp ebx, ecx
jle 0x46b500
xor eax, eax
mov ecx, esi
cmp eax, 0x44d3a0
jne 0x46b52b
call fcn.004694a0
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov eax, 0x202
jmp 0x46b53b
call fcn.004694a0
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, 0xa02
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 4]
mov dword [esi + 0x20], 0
mov word [esi + 0x1c], ax
jmp 0x46b570
mov eax, ecx
test ecx, ecx
je 0x46b56d
cmp byte [ecx], 0
je 0x46b566
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x46b560
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x18], eax
mov byte [esi + 0x1e], 1
mov eax, dword [edi + 0x58]
and al, 3
cmp al, 1
jne 0x46b5cb
push 0
mov edx, 4
lea ecx, [esi + 0x28]
call fcn.004690b0
add esp, 4
test eax, eax
jne 0x46b222
mov eax, 0x202
mov word [esi + 0x44], ax
mov dword [esi + 0x40], 2
movzx eax, byte [ebx + 3]
push eax
push str._.2x
push dword [esi + 0x2c]
push 3
call fcn.0044ef80
mov eax, 1
mov byte [esi + 0x46], 1
add esp, 0x10
mov word [esi + 0x6c], ax
mov cx, word [edi + 0x58]
and cx, 3
dec cx
mov eax, 2
sub ax, cx
shl ax, 2
mov word [edi + 0x54], ax
mov eax, dword [edi + 8]
add eax, 0x28
mov esi, 0x64
mov dword [edi + 0x14], eax
mov dword [edi + 0x50], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x65
mov dword [edi + 0x50], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret