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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x4c]
push edi
mov edi, dword [ebx]
add esi, 0x28
cmp dword [ebx + 0x44], 0xbdf20da3
mov dword [esp + 0x10], edi
mov dword [ebx + 0x78], esi
je 0x1004ac53
mov eax, 0x15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x48]
mov eax, esi
call fcn.1004ab70
cmp dword [ebx + 0x64], 7
jne 0x1004ac73
mov byte [edi + 0x1e], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x60]
lea edx, [eax + 1]
mov dword [ebx + 0x60], edx
cmp eax, ecx
jge 0x1004ac99
cmp byte [ebx + 0x7c], 2
jne 0x1004ac95
mov edi, dword [ebx + 0x14]
lea edx, [eax + eax*4]
cmp byte [edi + edx*4], 0x73
jne 0x1004ac76
cmp eax, ecx
jl 0x1004acae
mov edi, 0x65
mov dword [ebx + 0x64], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xd8]
test edx, edx
je 0x1004acf2
mov dword [ebx + 0x64], 9
mov eax, dword [str.interrupted]
mov edi, 1
test eax, eax
jne 0x1004acd6
mov eax, str.unknown_error
push eax
push 0x100ec558
lea esi, [ebx + 0x74]
mov eax, ecx
call fcn.10034db0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x7c], 1
mov edx, dword [ebx + 0x14]
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*4]
mov dword [esp + 0x18], edi
jne 0x1004ad3f
cdq
mov dword [esi + 4], edx
mov byte [esi + 0x1e], 1
mov dword [esi], eax
mov ecx, 4
mov word [esi + 0x1c], cx
mov edx, 0xa02
mov word [esi + 0x44], dx
movzx eax, byte [edi]
mov ecx, dword [eax*4 + 0x100e40c8]
mov dword [esi + 0x3c], ecx
call fcn.10036a80
mov dword [esi + 0x40], eax
mov word [esi + 0x46], 0x103
add esi, 0x50
mov ecx, 4
mov word [esi + 0x1c], cx
mov eax, dword [edi + 4]
cdq
mov dword [esi + 4], edx
mov dword [esi], eax
mov byte [esi + 0x1e], 1
mov edx, ecx
mov word [esi + 0x44], dx
mov eax, dword [edi + 8]
cdq
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov byte [esi + 0x46], 1
add esi, 0x50
cmp byte [ebx + 0x7c], 1
jne 0x1004ad88
mov eax, ecx
mov word [esi + 0x1c], ax
mov eax, dword [edi + 0xc]
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x1e], 1
add esi, 0x28
push 0
push 0x20
push esi
call fcn.10048bd0
add esp, 0xc
test eax, eax
jne 0x1004ac67
mov edi, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, 0x602
mov word [esi + 0x1c], cx
call fcn.1004a8b0
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x1004ae74
test eax, eax
jne 0x1004adef
test byte [esi + 0x1c], 0x20
je 0x1004add2
mov edi, dword [esi]
call fcn.1003aa40
mov dx, word [esi + 0x1c]
mov eax, 0xbf01
and dx, ax
or dx, 1
mov word [esi + 0x1c], dx
mov byte [esi + 0x1e], 5
jmp 0x1004ae80
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1004adff
mov ecx, dword [ecx + 0x50]
mov dword [esp + 0x10], ecx
jmp 0x1004ae0b
mov dword [esp + 0x10], 0x3b9aca00
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
js 0x1004ae1c
cmp byte [edi + eax], 0
je 0x1004ae1c
inc edi
cmp edi, ecx
jle 0x1004ae11
xor ecx, ecx
mov dword [esp + 0x1c], 0x202
push esi
cmp ecx, fcn.100349a0
jne 0x1004ae44
call fcn.10048fa0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x20]
jmp 0x1004ae55
call fcn.10048fa0
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], edx
mov eax, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1004ae80
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], ax
mov word [esi + 0x1e], 0x103
jmp 0x1004ae80
call fcn.10036a80
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], 1
mov byte [esi + 0x1e], 3
add esi, 0x28
cmp byte [ebx + 0x7c], 1
jne 0x1004aee1
push 0
push 4
push esi
call fcn.10048bd0
add esp, 0xc
test eax, eax
jne 0x1004ac67
mov ecx, dword [esp + 0x18]
mov eax, 0x602
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], 2
movzx edx, byte [ecx + 3]
push edx
push str._.2x
push eax
push 3
call fcn.100360a0
mov word [esi + 0x1e], 0x103
mov ecx, 1
add esp, 0x10
mov word [esi + 0x44], cx
mov byte [esi + 0x46], 5
movzx eax, byte [ebx + 0x7c]
lea edx, [eax + eax*4]
mov eax, 0xd
sub eax, edx
mov edi, 0x64
mov dword [ebx + 0x6c], eax
mov eax, edi
pop edi
pop esi
mov dword [ebx + 0x64], 0
pop ebx
mov esp, ebp
pop ebp
ret