Function at 0x1004df50
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 0x1004df83
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.1004dea0
cmp dword [ebx + 0x64], 7
jne 0x1004dfa3
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 0x1004dfc9
cmp byte [ebx + 0x7c], 2
jne 0x1004dfc5
mov edi, dword [ebx + 0x14]
lea edx, [eax + eax*4]
cmp byte [edi + edx*4], 0x73
jne 0x1004dfa6
cmp eax, ecx
jl 0x1004dfde
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 0x1004e022
mov dword [ebx + 0x64], 9
mov eax, dword [str.interrupted]
mov edi, 1
test eax, eax
jne 0x1004e006
mov eax, str.unknown_error
push eax
push 0x100f06f8
lea esi, [ebx + 0x74]
mov eax, ecx
call fcn.100380b0
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 0x1004e06f
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 + 0x100e8268]
mov dword [esi + 0x3c], ecx
call fcn.10039d80
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 0x1004e0b8
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.1004bf00
add esp, 0xc
test eax, eax
jne 0x1004df97
mov edi, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, 0x602
mov word [esi + 0x1c], cx
call fcn.1004dbe0
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x1004e1a4
test eax, eax
jne 0x1004e11f
test byte [esi + 0x1c], 0x20
je 0x1004e102
mov edi, dword [esi]
call fcn.1003dd60
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 0x1004e1b0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1004e12f
mov ecx, dword [ecx + 0x50]
mov dword [esp + 0x10], ecx
jmp 0x1004e13b
mov dword [esp + 0x10], 0x3b9aca00
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
js 0x1004e14c
cmp byte [edi + eax], 0
je 0x1004e14c
inc edi
cmp edi, ecx
jle 0x1004e141
xor ecx, ecx
mov dword [esp + 0x1c], 0x202
push esi
cmp ecx, fcn.10037ca0
jne 0x1004e174
call fcn.1004c2d0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x20]
jmp 0x1004e185
call fcn.1004c2d0
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 0x1004e1b0
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], ax
mov word [esi + 0x1e], 0x103
jmp 0x1004e1b0
call fcn.10039d80
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], 1
mov byte [esi + 0x1e], 3
add esi, 0x28
cmp byte [ebx + 0x7c], 1
jne 0x1004e211
push 0
push 4
push esi
call fcn.1004bf00
add esp, 0xc
test eax, eax
jne 0x1004df97
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.100393a0
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