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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
push edi
xor ecx, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
mov edi, dword [esi + 0x58]
mov dword [ebp - 0x1c], eax
add edi, 0x28
mov eax, dword [esi + 0x98]
mov esi, dword [ebp - 0x1c]
and al, 0xc
mov dword [ebp - 0x24], edi
cmp al, 4
je 0x1003b608
mov eax, dword [esi + 0x20]
and eax, 0x1000000
mov dword [ebp - 0x18], ecx
or eax, ecx
je 0x1003b60f
mov dword [ebp - 0x18], 1
mov edx, 8
mov ecx, edi
call fcn.1003b440
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x28], 7
mov dword [edx + 0x78], ebx
jne 0x1003b673
cmp byte [esi + 0x51], bl
jne 0x1003b667
cmp byte [esi + 0x52], bl
jne 0x1003b667
mov byte [esi + 0x51], 1
cmp dword [esi + 0xbc], ebx
jle 0x1003b647
mov dword [esi + 0x110], 1
inc dword [esi + 0x118]
xor eax, eax
mov word [esi + 0x11c], ax
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x1003b667
mov dword [eax + 0xc], 7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x6c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x18], ebx
je 0x1003b705
mov eax, dword [edx + 0x58]
add eax, 0x168
mov dword [ebp - 0x14], eax
test byte [eax + 8], 0x10
je 0x1003b6a1
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
shr ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x1003b6a3
xor ecx, ecx
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
cmp ecx, 2
jl 0x1003b6e7
lea eax, [ecx - 1]
xor edx, edx
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov edi, eax
mov eax, dword [ebx + esi*4]
add edx, dword [eax + 4]
mov eax, dword [ebx + esi*4 + 4]
add esi, 2
add ecx, dword [eax + 4]
cmp esi, edi
jl 0x1003b6c4
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
cmp esi, ecx
jge 0x1003b6f7
mov eax, dword [ebx + esi*4]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 8], ecx
mov esi, dword [edx + 0x24]
lea eax, [esi + 1]
mov dword [edx + 0x24], eax
cmp esi, ecx
jge 0x1003b828
mov eax, dword [edx + 0x6c]
cmp esi, eax
jge 0x1003b722
mov eax, dword [edx + 0x68]
jmp 0x1003b742
sub esi, eax
xor ecx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp esi, eax
jl 0x1003b73d
nop
inc ecx
sub esi, eax
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 4]
cmp esi, eax
jge 0x1003b730
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], 0
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 4], eax
je 0x1003b7f7
cmp byte [eax + 1], 0xfc
jne 0x1003b7f7
mov ecx, dword [ebp - 0xc]
lea eax, [ecx*4]
mov dword [ebp - 0x2c], eax
add eax, 4
mov dword [ebp - 0x28], eax
xor eax, eax
test ecx, ecx
jle 0x1003b78e
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebx + eax*4], edx
je 0x1003b78b
inc eax
cmp eax, ecx
jl 0x1003b781
mov edx, dword [ebp - 0x10]
cmp eax, ecx
jne 0x1003b7f7
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov edx, dword [ebp - 0x28]
test ecx, ecx
mov ecx, ebx
setne al
push eax
call fcn.10038520
mov edx, dword [ebp - 0x10]
add esp, 4
mov dword [edx + 0x28], eax
test eax, eax
jne 0x1003b83d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x10]
mov edi, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ecx + ebx], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0xc], ecx
or word [eax + 8], 0x10
lea eax, [ecx*4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
add edi, dword [eax + 4]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x24]
jmp 0x1003b7fa
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x98]
and al, 0xc
cmp al, 8
jb 0x1003b84b
mov al, byte [ecx]
cmp al, 0xae
je 0x1003b84b
cmp al, 0x3e
jne 0x1003b816
cmp dword [edx + 0x24], 1
jg 0x1003b84b
mov esi, dword [edx + 0x24]
lea eax, [esi + 1]
mov dword [edx + 0x24], eax
cmp esi, dword [ebp - 8]
jl 0x1003b716
mov esi, 0x65
mov dword [edx + 0x28], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x110], 0
je 0x1003b885
mov eax, dword [str.interrupted]
mov ecx, str.unknown_error
test eax, eax
mov dword [edx + 0x28], 9
mov esi, 1
cmovne ecx, eax
push ecx
push edx
call fcn.10039bf0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x98]
mov eax, 4
mov ebx, dword [ebp - 4]
and cl, 0xc
cmp cl, al
jne 0x1003b8e1
mov word [edi + 8], ax
mov eax, esi
cdq
mov dword [edi], eax
mov eax, 0xa02
mov dword [edi + 4], edx
mov word [edi + 0x30], ax
movzx eax, byte [ebx]
mov ecx, dword [eax*4 + 0x100ba4c8]
mov dword [edi + 0x38], ecx
test ecx, ecx
je 0x1003b8d2
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b8c3
sub ecx, edx
and ecx, 0x3fffffff
mov dword [edi + 0x34], ecx
mov eax, 4
mov byte [edi + 0x32], 1
add edi, 0x50
mov word [edi + 8], ax
mov ecx, 4
mov eax, dword [ebx + 4]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
mov word [edi + 0x30], cx
mov eax, dword [ebx + 8]
cdq
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
mov word [edi + 0x58], cx
mov eax, dword [ebx + 0xc]
cdq
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
add edi, 0x78
cmp dword [edi + 0x18], 0x64
jge 0x1003b937
lea edx, [ecx + 0x60]
mov ecx, edi
push 0
call fcn.10038520
add esp, 4
test eax, eax
je 0x1003b942
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
and word [edi + 8], 0x2d
mov dword [edi + 0x10], eax
push dword [edi + 0x18]
mov edx, dword [edi + 0x10]
mov eax, 0x202
mov ecx, ebx
mov word [edi + 8], ax
call fcn.1003af80
mov ecx, dword [edi + 0x10]
mov ebx, eax
add esp, 4
mov edx, 1
cmp ebx, ecx
je 0x1003ba4f
mov dword [edi + 0xc], 0
test ebx, ebx
jne 0x1003b998
mov eax, 0x2400
test word [edi + 8], ax
je 0x1003b98f
mov ecx, edi
call fcn.10038970
jmp 0x1003ba6c
mov word [edi + 8], dx
jmp 0x1003ba6c
mov esi, ebx
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003b9a0
sub esi, ecx
mov eax, 0x2400
and esi, 0x7fffffff
test word [edi + 8], ax
jne 0x1003b9c0
cmp dword [edi + 0x18], 0
je 0x1003b9c7
mov ecx, edi
call fcn.100389b0
xor eax, eax
mov dword [edi + 0x10], ebx
cmp eax, 0x100190b0
jne 0x1003ba3e
mov eax, dword [edi + 0x20]
mov dword [edi + 0x14], ebx
test eax, eax
je 0x1003ba23
cmp ebx, dword [eax + 0x14c]
jae 0x1003ba23
cmp ebx, dword [eax + 0x144]
jb 0x1003ba03
mov eax, 0x80
mov dword [edi + 0xc], esi
mov dword [edi + 0x18], eax
mov eax, 0x202
mov word [edi + 8], ax
jmp 0x1003ba68
cmp ebx, dword [eax + 0x148]
jb 0x1003ba23
movzx eax, word [eax + 0x11e]
mov dword [edi + 0x18], eax
mov eax, 0x202
mov dword [edi + 0xc], esi
mov word [edi + 8], ax
jmp 0x1003ba68
push ebx
call dword [0x100cecf4]
mov dword [edi + 0x18], eax
add esp, 4
mov eax, 0x202
mov dword [edi + 0xc], esi
mov word [edi + 8], ax
jmp 0x1003ba68
mov dword [edi + 0x24], eax
mov eax, 0xa02
mov dword [edi + 0xc], esi
mov word [edi + 8], ax
jmp 0x1003ba68
test ecx, ecx
je 0x1003ba65
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ba56
sub ecx, edx
and ecx, 0x3fffffff
mov dword [edi + 0xc], ecx
mov byte [edi + 0xa], 1
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x98]
and al, 0xc
cmp al, 4
jne 0x1003bae5
cmp dword [edi + 0x40], 4
jge 0x1003baa3
push 0
mov edx, 4
lea ecx, [edi + 0x28]
call fcn.10038520
add esp, 4
test eax, eax
je 0x1003baae
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
and word [edi + 0x30], 0x2d
mov dword [edi + 0x38], eax
mov eax, 0x202
mov dword [edi + 0x34], 2
mov word [edi + 0x30], ax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
push eax
push str._.2x
push dword [edi + 0x38]
push 3
call fcn.1001b860
mov eax, 1
mov byte [edi + 0x32], 1
add esp, 0x10
mov word [edi + 0x58], ax
mov ecx, dword [esi + 0x98]
mov eax, 2
shr ecx, 2
and ecx, 3
mov dword [esi + 0x28], 0
dec ecx
sub eax, ecx
shl eax, 2
mov word [esi + 0x90], ax
mov eax, dword [esi + 0x58]
add eax, 0x28
mov dword [esi + 0x78], eax
mov esi, 0x64
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret