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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, eax
push ebx
shr eax, 1
and eax, 1
push esi
mov esi, dword [ebp + 8]
not ecx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
and ecx, 1
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], 0x400
cmp eax, 0x28
jle 0x1003d3e8
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 8], eax
jmp 0x1003d3f2
mov dword [ebp - 8], 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x1003d4b9
cmp byte [ecx], bl
je 0x1003d4b9
mov ebx, dword [esi + 8]
inc ebx
lea edx, [ebx + ebx]
push edx
call fcn.10034620
mov edi, eax
add esp, 4
test edi, edi
je 0x1003d5e4
mov eax, dword [ebp + 0x10]
mov ecx, str.:memory:
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003d450
test dl, dl
je 0x1003d44c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003d450
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003d430
xor eax, eax
jmp 0x1003d455
sbb eax, eax
sbb eax, 0xffffffff
mov byte [edi], 0
test eax, eax
jne 0x1003d465
mov dword [ebp - 0x10], 1
jmp 0x1003d477
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x24]
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x10
mov dword [ebp - 4], eax
cmp byte [edi], 0
mov ebx, edi
je 0x1003d486
mov edi, edi
inc ebx
cmp byte [ebx], 0
jne 0x1003d480
sub ebx, edi
and ebx, 0x3fffffff
cmp dword [ebp - 4], 0
jne 0x1003d4a3
lea edx, [ebx + 8]
cmp edx, dword [esi + 8]
jle 0x1003d4b6
mov dword [ebp - 4], 0xe
push edi
call fcn.10034920
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 4]
add ecx, 7
add eax, ebx
and ecx, 0xfffffff8
lea eax, [ecx + eax*2 + 0xea]
push eax
mov dword [ebp - 4], eax
call fcn.10034620
mov esi, eax
add esp, 4
test esi, esi
je 0x1003d5db
mov edx, dword [ebp - 4]
push edx
push 0
push esi
call fcn.100b5b30
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xb0]
mov dword [esi + 0xa8], eax
add eax, 0x30
mov dword [esi + 0x38], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [ebp - 8]
mov dword [esi + 0x40], eax
add eax, edx
mov dword [esi + 0x3c], eax
add eax, edx
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x1003d572
push ebx
lea ecx, [eax + ebx + 1]
push edi
push eax
mov dword [esi + 0x88], ecx
call fcn.100b2fc0
mov edx, dword [esi + 0x88]
add esp, 0xc
push ebx
push edi
push edx
call fcn.100b2fc0
mov eax, dword [esi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + ebx], ecx
mov edx, dword [0x100ec58c]
add esp, 0xc
push edi
mov dword [eax + ebx + 4], edx
call fcn.10034920
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [esi], ecx
mov dword [esi + 0x78], edi
test eax, eax
je 0x1003d5f8
cmp byte [eax], 0
je 0x1003d5f8
cmp dword [ebp - 0x10], 0
jne 0x1003d5f8
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x84]
lea ebx, [ebp + 0x10]
push ebx
push edi
push eax
mov eax, dword [ecx + 0x18]
push edx
push ecx
mov dword [ebp + 0x10], 0
call eax
mov ebx, dword [ebp + 0x10]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x1003d61a
test ebx, ebx
jne 0x1003d606
call fcn.1003c6a0
mov eax, dword [esi + 0x70]
cmp eax, 0x400
jbe 0x1003d606
cmp eax, 0x2000
jbe 0x1003d5f0
mov dword [ebp - 0xc], 0x2000
jmp 0x1003d606
push edi
call fcn.10034920
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x1003d606
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov byte [esi + 0xe], 4
lea edx, [ebp - 0xc]
push edx
mov edi, esi
call fcn.1003cbf0
mov edi, eax
add esp, 4
test edi, edi
je 0x1003d644
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x1003d632
mov eax, dword [eax + 4]
push ebx
call eax
add esp, 4
mov dword [ebx], 0
push esi
call fcn.10034920
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0xa8]
push 0x30
push 0
push edi
call fcn.100b5b30
movzx ecx, word [ebp - 0xc]
xor edx, edx
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
and eax, 0x1003d2b0
cmp dword [ebp - 0x20], 0
mov dword [edi + 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x18], 0x50
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
je 0x1003d6a3
test ebx, ebx
je 0x1003d6a3
mov eax, 1
jmp 0x1003d6a5
xor eax, eax
mov byte [esi + 7], al
mov al, byte [ebp - 0x14]
mov byte [esi + 0x15], cl
mov dword [esi + 0x80], 0x3fffffff
mov byte [esi + 0xb], al
mov byte [esi + 4], al
mov byte [esi + 0x12], al
mov byte [esi + 0xd], cl
mov byte [esi + 0xc], bl
test al, al
jne 0x1003d6d3
test edx, edx
je 0x1003d6d3
xor eax, eax
jmp 0x1003d6d8
mov eax, 1
test al, al
sete cl
mov byte [esi + 8], al
or eax, 0xffffffff
mov byte [esi + 9], cl
mov byte [esi + 0xa], 2
mov dword [esi + 0x74], 0x50
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
call fcn.1003c6a0
cmp dword [ebp - 0x10], 0
je 0x1003d70c
mov byte [esi + 5], 4
mov edx, dword [ebp + 0xc]
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret