Function at 0x1003eaf0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065e88
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x50
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [ebp - 0x10], 0x80004005
call fcn.1004bb60
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [ebp - 0x64], ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
add esp, 0xc
cmp dword [edi + 0x60], ecx
lea edx, [esi + 0xc]
sete cl
mov dword [ebp - 0x58], edx
lea eax, [esi + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0xc]
lea edx, [esi + 0x14]
mov dword [ebp - 0x4c], edx
mov edx, dword [edi + 0x68]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 4]
lea ebx, [edi + 0x50]
mov ecx, esi
mov dword [ebp - 0x5c], ebx
call edx
cmp word [edi + 0x40], 0x13
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jne 0x1003eb9f
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 1]
cmp eax, 0xa
ja case.0x1003ebab.6
jmp dword [eax*4 + 0x1003f644]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test eax, eax
je 0x1003ebfe
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003ebfe
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
je 0x1003ebfe
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
call fcn.1003ea00
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 5
push edi
call edx
mov eax, dword [edi + 0x1c]
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
mov ebx, eax
mov dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 5
mov edx, dword [ebx]
mov edx, dword [edx + 8]
add esp, 0x14
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
mov dword [ebp + 8], ebx
call edx
test eax, eax
js case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
je 0x1003ec80
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 0
call fcn.1003e700
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0x50]
call fcn.1003e570
cmp dword [ebp - 0x38], 0
je 0x1003eccc
lea eax, [ebp + 8]
push eax
call fcn.1003df10
test eax, eax
js 0x1003eccc
mov esi, dword [ebp + 8]
test esi, esi
je 0x1003ecbb
lea eax, [esi + 0x14]
jmp 0x1003ecbd
xor eax, eax
push eax
lea ecx, [ebx + 0x24]
call fcn.1003ded0
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je case.0x1003ebab.6
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
jmp case.0x1003ebab.6
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test eax, eax
je 0x1003ed27
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003ed27
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 8]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003e910
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 7
push edi
call edx
mov eax, dword [edi + 0x1c]
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x50
mov dword [ebp - 0x48], 7
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
test eax, eax
js case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
je 0x1003eda7
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], 1
jmp 0x1003f5fe
cmp dword [ebx], 0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
jne 0x1003ee80
call eax
test eax, eax
je 0x1003edf4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003edf4
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 0x18]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003dff0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 6
push edi
call edx
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x48], 3
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
test eax, eax
js case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
je 0x1003ee74
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], 2
jmp 0x1003f5fe
call eax
test eax, eax
je 0x1003eeb1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003eeb1
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 0x14]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003e0a0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
mov ebx, 3
push ebx
push edi
call edx
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x48], ebx
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
test eax, eax
js case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
je 0x1003ef31
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], ebx
jmp 0x1003f5fe
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1003f025
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test eax, eax
je 0x1003ef7b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003ef7b
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 0x10]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003e150
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 8
push edi
call edx
mov eax, dword [edi + 0x24]
xor ebx, ebx
push ebx
push 0x100e542c
push 0x100db5f8
push ebx
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x20
mov dword [ebp - 0x48], 8
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
call edx
cmp eax, ebx
jl case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x1003effd
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 4
call fcn.1003e700
lea edx, [ebp - 0x14]
push edx
lea ecx, [esi + 0x50]
call fcn.1003e570
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 5
jmp 0x1003f10b
cmp ebx, 1
jne case.0x1003ebab.6
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
je 0x1003f066
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003f066
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0xc]
push edi
push ecx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea edx, [ebp + 8]
push edx
call fcn.1003e200
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 8
push edi
call edx
mov eax, dword [edi + 0x24]
xor ebx, ebx
push ebx
push 0x100e542c
push 0x100db5f8
push ebx
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x20
mov dword [ebp - 0x48], 8
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
call edx
cmp eax, ebx
jl case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x1003f0e8
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 6
call fcn.1003e700
lea edx, [ebp - 0x14]
push edx
lea ecx, [esi + 0x50]
call fcn.1003e570
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 7
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
lea ecx, [ebp + 8]
push ecx
push edi
call edx
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
mov dword [ebp - 4], 0xffffffff
call edx
jmp case.0x1003ebab.6
cmp dword [ebx], 0
mov ecx, esi
jne 0x1003f21b
mov eax, dword [esi]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x1003f178
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003f178
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
push edi
push ecx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea edx, [ebp + 8]
push edx
call fcn.1003e910
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
xor ebx, ebx
push ebx
push edi
call edx
mov eax, dword [edi + 0x24]
push ebx
push 0x100e542c
push 0x100db5f8
push ebx
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], ebx
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
cmp eax, ebx
jl case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x1003f1f5
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], 8
push edi
lea ecx, [esi + 0x3c]
call fcn.1003e700
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0x50]
call fcn.1003e570
mov dword [ebp - 0x10], ebx
cmp edi, ebx
jmp 0x1003f61c
mov edx, dword [esi]
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x1003f251
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003f251
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 4]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003e2b0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 1
push edi
call edx
mov eax, dword [edi + 0x24]
xor ebx, ebx
push ebx
push 0x100e542c
push 0x100db5f8
push ebx
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x30
mov dword [ebp - 0x48], ebx
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
cmp eax, ebx
jl case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x1003f2cf
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], 9
jmp 0x1003f1fc
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test eax, eax
je 0x1003f313
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003f313
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 4]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003e2b0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 4
push edi
call edx
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x60], 0x30
mov dword [ebp - 0x48], 5
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, ebx
mov dword [ebp + 8], ebx
call edx
test eax, eax
js 0x1003f3e7
lea eax, [edi + 0x18]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1003f397
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 4]
lea eax, [edi + 0x18]
push eax
call edx
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 0xa
call fcn.1003e700
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x50]
call fcn.1003e570
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x1003f3c6
push eax
lea ecx, [ebx + 0x2c]
call fcn.1003ded0
lea eax, [edi + 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003f3e7
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 8]
lea eax, [edi + 0x18]
push eax
call edx
mov dword [ebp - 0x14], 0
mov ecx, dword [edi + 0x18]
lea eax, [edi + 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 4], 0xb
call eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.100019d0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.1003e4c0
lea ecx, [ebp + 8]
call fcn.1003e460
mov edx, dword [ebp + 8]
cmp dword [edx - 8], 0
jle 0x1003f468
lea ecx, [ebp + 8]
call fcn.10001360
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push str.INTERNAL
lea ecx, [ebp + 8]
call fcn.1003a2f0
cmp eax, 0xffffffff
je 0x1003f45e
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 5
push edi
call edx
jmp 0x1003f468
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push 4
push edi
call ecx
lea ecx, [ebp + 8]
call fcn.100010b0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp case.0x1003ebab.6
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
je 0x1003f4b7
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003f4b7
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x20]
push edi
push ecx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea edx, [ebp + 8]
push edx
call fcn.1003e360
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 4
push edi
call edx
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x60
mov dword [ebp - 0x48], 4
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
test eax, eax
js case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
je 0x1003f537
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], 0xd
jmp 0x1003f5fe
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test eax, eax
je 0x1003f57b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, eax
call fcn.1001f890
test eax, eax
jne 0x1003f57b
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx + 0x1c]
push edi
push edx
mov ecx, esi
call fcn.1003dcd0
test eax, eax
jne 0x1003ebe5
lea eax, [ebp + 8]
push eax
call fcn.1003e0a0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
lea ecx, [edi + 0x1c]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
push 0xa
push edi
call edx
mov eax, dword [edi + 0x24]
push 0
push 0x100e542c
push 0x100db5f8
push 0
push eax
call fcn.1004dee7
add esp, 0x14
mov dword [ebp - 0x60], 0x80
mov dword [ebp - 0x48], 0xa
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call edx
test eax, eax
js case.0x1003ebab.6
add edi, 0x18
mov dword [ebp - 0x14], edi
je 0x1003f5f7
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [ebp - 4], 0xe
push edi
lea ecx, [esi + 0x3c]
call fcn.1003e700
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0x50]
call fcn.1003e570
mov dword [ebp - 0x10], 0
test edi, edi
mov dword [ebp - 4], 0xffffffff
je case.0x1003ebab.6
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4