Function at 0x1003b96c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
je 0x1003b98b
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1003bc40
cmp byte [ecx], 0
je 0x1003b9a0
push 0x2695
push 0x4c1
call dword [sym.imp.USER32.dll_SetParent]
mov dword [esp + 0x10], 0x6811
cmp dword [esp + 0x10], 0x6a27
jle 0x1003bc2b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x22ef
cmp dword [esp + 0x14], 0xdf5
jge 0x1003bbde
call fcn.1004825e
push eax
push 0x1006eac4
push 0x1006eac8
call fcn.1004840d
add esp, 0xc
mov dword [esp + 0x14], 1
push 0x100b1744
push 0x100692e0
call fcn.100472fb
mov eax, dword [0x100b1744]
pop ecx
pop ecx
test eax, eax
je 0x1003bbd8
mov ebx, dword [esp + 0x14]
dec eax
push ebx
push str.Case__d:_n
mov dword [0x100b1744], eax
inc ebx
call fcn.1004752f
push 0x1211e3e8
push 0x100692e0
call fcn.100472fb
mov eax, dword [0x1211e3e8]
add esp, 0x10
mov dword [0x1211e3e4], esi
test eax, eax
je 0x1003bace
dec eax
push 0x1418b08c
push 0x100692e0
mov dword [0x1211e3e8], eax
call fcn.100472fb
push 0x11f35f60
push 0x1006c0e8
call fcn.100472fb
push 0x11f35f60
call fcn.10047270
mov esi, dword [0x1418b08c]
add esp, 0x14
mov edi, eax
mov dword [0x1418b088], edi
test esi, esi
jle 0x1003bac3
mov edx, dword [0x1211e3e4]
xor ecx, ecx
test edi, edi
jle 0x1003bac0
inc edx
cmp byte [ecx + 0x11f35f60], 0x31
sete al
inc ecx
mov byte [edx + 0x1211e3f0], al
cmp ecx, edi
jl 0x1003baa4
mov dword [0x1211e3e4], edx
dec esi
jne 0x1003ba9e
mov eax, dword [0x1211e3e8]
test eax, eax
jne 0x1003ba55
xor esi, esi
push 0x1e84810
dec eax
push esi
push 0x100b1750
mov dword [0x1211e3e8], eax
call fcn.1001356d
add esp, 0xc
push 0x1e84810
push 0xffffffffffffffff
push 0x12306878
call fcn.1001356d
add esp, 0xc
xor edx, edx
xor ecx, ecx
inc edx
inc ecx
push dword [0x1211e3e4]
call fcn.1003b723
mov dword [esp], 0x100b1748
push 0x100692e0
call fcn.100472fb
pop ecx
xor edi, edi
pop ecx
inc edi
jmp 0x1003bbb4
push 0x12306874
push 0x1418b090
dec eax
push 0x100943cf
push str.__c__d__d
mov dword [0x100b1748], eax
call fcn.100472fb
mov al, byte [0x100943cf]
add esp, 0x10
inc dword [0x1418b090]
inc dword [0x12306874]
push dword [0x1211e3e4]
cmp al, 0x46
jne 0x1003bb72
xor eax, eax
inc eax
mov dword [0x100b174c], eax
mov edx, eax
mov ecx, eax
jmp 0x1003bb92
xor edx, edx
xor ecx, ecx
inc edx
inc ecx
cmp al, 0x45
jne 0x1003bb84
mov dword [0x100b174c], esi
jmp 0x1003bb92
cmp al, 0x49
jne 0x1003bb9a
mov dword [0x100b174c], 2
call fcn.1003b864
pop ecx
jmp 0x1003bbb4
mov esi, edi
inc edi
call fcn.1003b8f6
pop ecx
push eax
push esi
push str.Q_d:__d_n
call fcn.1004752f
add esp, 0xc
xor esi, esi
mov eax, dword [0x100b1748]
test eax, eax
jne 0x1003bb27
dec eax
mov dword [0x100b1748], eax
mov eax, dword [0x100b1744]
test eax, eax
jne 0x1003ba22
mov ebx, dword [esp + 0xc]
dec eax
mov dword [0x100b1744], eax
mov ecx, esi
mov eax, ebx
shl eax, cl
lea ecx, [esp + 0x18]
cdq
push edx
push eax
call fcn.10001ade
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003bbfa
mov eax, dword [eax]
push eax
call fcn.1004752f
pop ecx
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.10013e9b
inc esi
cmp esi, 0x7cd1
jl 0x1003bbde
inc ebx
mov dword [esp + 0xc], ebx
push 0
pop esi
cmp ebx, 0x791c
jl 0x1003b9ca
cmp dword [esp + 0x10], 0x67ff
jge 0x1003bc40
push str.ttrpbtas_bcaiqxou_bmmtr
call fcn.1004752f
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret