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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
mov esi, dword [edi + 8]
mov eax, dword [edi]
lea edx, [ebx + 8]
add esi, 0x28
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0045fbe0
cmp dword [edi + 0x5c], 7
mov dword [edi + 0x14], ebx
jne 0x45fd9e
mov eax, dword [ebp - 8]
mov byte [eax + 0x1e], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edi + 0x61]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], al
cmp al, 1
jne 0x45fe20
mov ecx, dword [edi + 8]
add ecx, 0x168
mov dword [ebp - 0x14], ecx
test byte [ecx + 0x1c], 0x10
je 0x45fdce
mov eax, dword [ecx + 0x18]
mov ebx, dword [ecx + 4]
shr eax, 2
mov dword [ebp - 0xc], eax
jmp 0x45fdd0
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x10], edx
cmp eax, 2
jb 0x45fe04
dec eax
xor esi, esi
mov dword [ebp - 0x10], eax
mov edi, eax
mov eax, dword [ebx + ecx*4]
add edx, dword [eax + 4]
mov eax, dword [ebx + ecx*4 + 4]
add ecx, 2
add esi, dword [eax + 4]
cmp ecx, edi
jl 0x45fde4
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
cmp ecx, eax
jge 0x45fe13
mov eax, dword [ebx + ecx*4]
mov ecx, dword [edi + 0x1c]
add ecx, dword [eax + 4]
jmp 0x45fe16
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x10]
add eax, edx
add ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [edi + 0x58]
lea eax, [edx + 1]
mov dword [edi + 0x58], eax
cmp edx, ecx
jge 0x460179
cmp byte [ebp - 1], 2
jne 0x45fe46
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4], 0x96
mov ecx, dword [ebp - 0x10]
jne 0x45fe20
mov eax, dword [ebp - 8]
cmp dword [eax + 0xe0], 0
je 0x45fe8b
mov eax, dword [str.interrupted]
mov ecx, str.unknown_error
test eax, eax
mov dword [edi + 0x5c], 9
mov esi, 1
cmovne ecx, eax
lea eax, [edi + 0x38]
push ecx
push 0x578aac
push dword [ebp - 8]
push eax
call fcn.004453a0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1c]
cmp edx, eax
jge 0x45fe97
mov eax, dword [edi + 4]
jmp 0x45feb6
sub edx, eax
xor ecx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x45feb1
inc ecx
sub edx, eax
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x45fea4
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax]
cmp byte [edi + 0x61], 1
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4]
mov dword [ebp - 8], ecx
jne 0x45ff7f
mov eax, 4
mov byte [esi + 0x1e], 1
mov word [esi + 0x1c], ax
mov eax, edx
cdq
mov dword [esi + 0x10], eax
mov eax, 0xa02
mov dword [esi + 0x14], edx
mov word [esi + 0x44], ax
movzx eax, byte [ecx]
mov ecx, dword [eax*4 + 0x573d98]
mov eax, ecx
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x45ff0d
cmp byte [ecx], 0
je 0x45ff06
inc eax
cmp byte [eax], 0
jne 0x45ff00
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 8]
mov word [esi + 0x46], 0x103
add esi, 0x50
cmp byte [eax + 1], 0xee
jne 0x45ff7f
mov ecx, dword [ebp - 0xc]
lea eax, [ecx*4]
lea edx, [eax + 4]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x45ff4e
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
cmp dword [ebx + eax*4], edx
je 0x45ff4b
inc eax
cmp eax, ecx
jl 0x45ff41
mov edx, dword [ebp - 0x10]
cmp eax, ecx
jne 0x45ff7f
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
push 1
call fcn.0045d8e0
add esp, 4
test eax, eax
jne 0x45ff7f
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x10]
or word [ebx + 0x1c], 0x10
mov dword [ebx + 0x18], eax
mov ebx, dword [ebp - 8]
mov ecx, 4
mov word [esi + 0x1c], cx
push 0
mov eax, dword [ebx + 4]
mov byte [esi + 0x1e], 1
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 byte [esi + 0x46], 1
mov word [esi + 0x6c], cx
mov eax, dword [ebx + 0xc]
cdq
mov dword [esi + 0x64], edx
lea edx, [ecx + 0x1c]
lea ecx, [esi + 0x78]
mov dword [esi + 0x60], eax
mov byte [esi + 0x6e], 1
call fcn.0045d8e0
add esp, 4
test eax, eax
jne 0x45fd92
mov edx, dword [esi + 0x7c]
mov eax, 0x602
push ecx
mov ecx, ebx
mov word [esi + 0x94], ax
call fcn.0045f7f0
mov edx, dword [esi + 0x7c]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
je 0x4600ac
test ecx, ecx
jne 0x46005d
test byte [esi + 0x94], 0x40
je 0x460023
mov edx, dword [esi + 0x88]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xac]
mov dword [edx + 0x44], eax
mov dword [ecx + 0xac], edx
test byte [esi + 0x94], 0x20
je 0x460037
mov ecx, dword [esi + 0x88]
call fcn.0044c960
mov ax, word [esi + 0x94]
mov ecx, 0xbf01
and ax, cx
mov byte [esi + 0x96], 5
or ax, 1
mov word [esi + 0x94], ax
jmp 0x4600d1
mov eax, dword [esi + 0x78]
test eax, eax
je 0x460069
mov eax, dword [eax + 0x48]
jmp 0x46006e
mov eax, 0x3b9aca00
xor ebx, ebx
test eax, eax
js 0x46007f
cmp byte [ebx + ecx], 0
je 0x46007f
inc ebx
cmp ebx, eax
jle 0x460074
lea ecx, [esi + 0x78]
call fcn.0045dcb0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x90], ebx
mov ebx, dword [ebp - 8]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x98], 0
mov dword [esi + 0x94], 0x1030a02
jmp 0x4600d1
mov eax, edx
test edx, edx
je 0x4600c4
cmp byte [edx], 0
je 0x4600bd
inc eax
cmp byte [eax], 0
jne 0x4600b7
sub eax, edx
and eax, 0x3fffffff
mov dword [esi + 0x90], eax
mov byte [esi + 0x97], 1
mov byte [esi + 0x96], 3
cmp byte [edi + 0x61], 1
jne 0x460147
push 0
mov edx, 4
lea ecx, [esi + 0xa0]
call fcn.0045d8e0
add esp, 4
test eax, eax
jne 0x45fd92
mov eax, 0x602
mov dword [esi + 0xb8], 2
mov word [esi + 0xbc], ax
movzx eax, byte [ebx + 3]
push eax
push str._.2x
push dword [esi + 0xa4]
push 3
call fcn.00446760
mov word [esi + 0xbe], 0x103
mov eax, 1
add esp, 0x10
mov word [esi + 0xe4], ax
mov byte [esi + 0xe6], 5
movzx eax, byte [edi + 0x61]
mov ecx, 3
sub cx, ax
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 8]
mov esi, 0x64
shl cx, 2
add eax, 0x28
mov dword [edi + 0x14], eax
mov eax, esi
mov word [edi + 0x30], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x65
mov dword [edi + 0x5c], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret