Function at 0x1001ca30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100699d0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x134], eax
xor eax, eax
mov dword [0x10086100], eax
mov dword [ebp - 0x134], 0x10086088
mov dword [0x10086104], eax
mov dword [0x10086108], eax
mov dword [0x1008610c], eax
mov dword [0x10086110], eax
mov dword [0x10086114], 0xf
mov byte [0x10086100], al
mov dword [ebp - 4], eax
mov dword [0x10086118], eax
mov dword [0x1008611c], eax
mov dword [0x10086120], eax
mov dword [0x10086124], eax
mov dword [0x10086128], eax
mov dword [0x1008612c], 0xf
mov byte [0x10086118], al
mov dword [0x10086130], eax
mov dword [0x10086134], eax
mov dword [0x10086138], eax
mov dword [0x1008613c], eax
mov dword [0x10086140], eax
mov dword [0x10086144], 0xf
mov byte [0x10086130], al
mov dword [0x1008614c], eax
mov dword [0x10086150], eax
mov dword [0x10086154], eax
mov dword [0x10086158], eax
mov dword [0x1008615c], eax
mov dword [0x10086160], 0xf
mov byte [0x1008614c], al
mov byte [ebp - 4], 3
mov ecx, 0x10086118
push 0xc
push str.tibianic.org
mov dword [0x100860a8], eax
mov word [0x100860af], ax
mov word [0x100860ac], ax
mov byte [0x100860ae], al
mov byte [0x100860e8], al
mov dword [0x100860b1], 0x1010100
mov dword [0x100860f0], eax
mov dword [0x100860f4], eax
mov dword [0x100860f8], eax
mov dword [0x100860fc], eax
mov dword [0x10086164], eax
mov dword [0x10086168], eax
mov dword [0x100860a4], eax
mov dword [0x10086178], eax
mov dword [0x1008617c], eax
mov dword [0x100860b8], eax
call fcn.10006b20
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001cc32
push 0x30
mov dword [ebp - 0x12c], eax
call fcn.10042cf2
mov ebx, eax
mov ecx, 0xb
mov esi, str.Tibia_client_was_unable_to_get_current_module_
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
add esp, 4
movsw word es:[edi], word [esi]
mov byte [ebx + 0x2e], 0
mov ecx, dword [0x10086114]
cmp ecx, 0x10
jb 0x1001cc07
mov eax, dword [0x10086100]
inc ecx
cmp ecx, 0x1000
jb 0x1001cbfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d3c4
mov eax, edx
push ecx
push eax
call fcn.10042d22
add esp, 8
xor eax, eax
mov dword [0x10086100], ebx
mov dword [0x10086104], eax
mov dword [0x10086108], eax
mov dword [0x1008610c], eax
mov dword [0x10086110], 0x2e
mov dword [0x10086114], 0x2f
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
jmp 0x1001cc40
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001cc40
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, 0x10086130
call fcn.10006b20
cmp dword [0x10086144], 0x10
mov edx, 0x10086130
mov esi, dword [0x10086130]
setae bl
jb 0x1001cc74
mov edx, esi
mov ecx, dword [0x10086140]
test ecx, ecx
je 0x1001cc9e
lea eax, [ecx - 1]
cmp eax, 0xffffffff
jb 0x1001cc89
or eax, 0xffffffff
add eax, edx
cmp byte [eax], 0x5c
je 0x1001cc9a
cmp eax, edx
je 0x1001cc9e
dec eax
cmp byte [eax], 0x5c
jne 0x1001cc90
sub eax, edx
jmp 0x1001cca1
or eax, 0xffffffff
xor edx, edx
inc eax
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
cmp ecx, eax
jb 0x1001d3bf
sub ecx, eax
cmp ecx, 0xffffffff
jb 0x1001ccda
or ecx, 0xffffffff
mov edx, 0x10086130
test bl, bl
je 0x1001cce5
mov edx, esi
push ecx
add eax, edx
lea ecx, [ebp - 0x12c]
push eax
call fcn.10008600
mov ecx, dword [0x10086144]
cmp ecx, 0x10
jb 0x1001cd2d
mov eax, dword [0x10086130]
inc ecx
cmp ecx, 0x1000
jb 0x1001cd23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d3c4
mov eax, edx
push ecx
push eax
call fcn.10042d22
add esp, 8
mov eax, dword [ebp - 0x12c]
mov dword [0x10086130], eax
mov eax, dword [ebp - 0x128]
mov dword [0x10086134], eax
mov eax, dword [ebp - 0x124]
mov dword [0x10086138], eax
mov eax, dword [ebp - 0x120]
mov dword [0x1008613c], eax
mov eax, dword [ebp - 0x11c]
mov dword [0x10086140], eax
mov eax, dword [ebp - 0x118]
push 0x5c
mov dword [0x10086144], eax
call fcn.10042cf2
add esp, 4
mov esi, eax
mov dword [ebp - 0x130], esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push 0x400
push eax
mov byte [esi], 0
call fcn.10024310
lea eax, [esi + 0x14]
push 0x400
push eax
call fcn.10024310
lea eax, [esi + 0x2c]
push 0x400
push eax
call fcn.10024310
lea eax, [esi + 0x20]
push 0x400
push eax
call fcn.10024310
lea eax, [esi + 0x38]
push 0x400
push eax
call fcn.10024310
lea eax, [esi + 0x44]
push 0x400
push eax
call fcn.10024310
lea eax, [esi + 0x50]
push 0x400
push eax
call fcn.10024310
push 0x2c
mov dword [0x1008607c], esi
call fcn.10042cf2
mov dword [ebp - 0x130], eax
push 0x3c54
mov dword [0x10086080], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
call fcn.10042cf2
add esp, 0x40
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1000c330
mov byte [ebp - 4], 3
push 0x118
mov dword [0x10086088], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.1000d900
mov byte [ebp - 4], 3
push 0x50
mov dword [0x10086090], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10010f30
mov byte [ebp - 4], 3
push 0x5c
mov dword [0x10086094], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.100104c0
mov byte [ebp - 4], 3
push 0x48
mov dword [0x10086098], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.100114b0
mov byte [ebp - 4], 3
push 0x6c
mov dword [0x1008609c], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.1000f620
mov byte [ebp - 4], 3
push 0xc
mov dword [0x100860a0], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.100010e0
mov byte [ebp - 4], 3
push 0x3c
mov dword [0x100860bc], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
push 0x3a
push 0x4b
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.10012580
mov byte [ebp - 4], 3
push 0x3c
mov dword [0x100860c0], eax
call fcn.10042cf2
add esp, 4
mov dword [ebp - 0x130], eax
push 0
push 0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.10012580
mov byte [ebp - 4], 3
mov dword [0x100860c4], eax
push 0x38
call fcn.10042cf2
mov esi, eax
add esp, 4
mov dword [ebp - 0x130], esi
push 0x22
push 0x22
push 0
push 0
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.10016550
mov byte [ebp - 4], 3
mov eax, dword [0x10086080]
mov dword [esi], vtable.ArrowSlot.0
lea ecx, [eax + 0xc]
mov dword [esi + 0x28], 0x61
mov dword [esi + 0x2c], 0x864
mov dword [esi + 0x30], 0xc
mov dword [esi + 0x34], 0
mov dword [0x100860e4], esi
mov edx, dword [ecx + 4]
mov esi, dword [0x100860c0]
mov dword [ebp - 0x130], esi
cmp edx, dword [ecx + 8]
je 0x1001d020
mov dword [edx], esi
add dword [ecx + 4], 4
jmp 0x1001d032
lea eax, [ebp - 0x130]
push eax
push edx
call fcn.100163f0
mov eax, dword [0x10086080]
mov edx, dword [eax + 0x10]
lea ecx, [eax + 0xc]
mov esi, dword [0x100860c4]
mov dword [ebp - 0x130], esi
cmp edx, dword [ecx + 8]
je 0x1001d051
mov dword [edx], esi
add dword [ecx + 4], 4
jmp 0x1001d063
lea eax, [ebp - 0x130]
push eax
push edx
call fcn.100163f0
mov eax, dword [0x10086080]
mov edx, dword [0x100860e4]
lea ecx, [eax + 0xc]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x130], edx
cmp eax, dword [ecx + 8]
je 0x1001d082
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x1001d08f
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.100163f0
push 0
push 1
push 0
push 0
push 0
push 0x1001c590
sub esp, 0x18
xor eax, eax
mov esi, esp
push 0xa
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push str.CAM_Record
push esi
mov dword [esi + 0x10], 0xa
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 0xa], 0
mov ecx, dword [0x100860c0]
call fcn.10012630
push 0
push 1
push 0x1e
push 0
push 0
push 0x1001c660
mov dword [0x100860c8], eax
sub esp, 0x18
mov esi, esp
xor eax, eax
push 0xa
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push str.CAM_Player
push esi
mov dword [esi + 0x10], 0xa
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 0xa], 0
mov ecx, dword [0x100860c0]
call fcn.10012630
push 1
push 0
push 0xffffffffffffffc8
push 0
push 0
push 0x1001c9d0
sub esp, 0x18
xor eax, eax
mov esi, esp
push 7
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push str.Options
push esi
mov dword [esi + 0x10], 7
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 7], 0
mov ecx, dword [0x100860c4]
call fcn.10012630
push 1
push 0
push 0xffffff75
push 0xffffffffffffffd7
push 0
push 0x1001c870
sub esp, 0x18
xor eax, eax
mov esi, esp
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push str.ANMPQ
push esi
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 1], 0
mov ecx, dword [0x100860c4]
call fcn.10012630
push 1
push 0
push 0xffffff75
push 0x34
push 0
mov dword [0x100860d0], eax
push 0x1001c8a0
mov dword [eax + 0x38], 0x18
sub esp, 0x18
mov esi, esp
mov dword [eax + 0x30], 0x10
mov dword [eax + 0x34], 0x10
xor eax, eax
push 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x10079a58
push esi
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 1], 0
mov ecx, dword [0x100860c4]
call fcn.10012630
push 1
push 1
push 0xffffff75
push 0x45
push 0
mov dword [0x100860d4], eax
push 0x1001c980
mov dword [eax + 0x38], 0x18
sub esp, 0x18
mov esi, esp
mov dword [eax + 0x30], 0x10
mov dword [eax + 0x34], 0x10
xor eax, eax
push 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x10079a5c
push esi
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 1], 0
mov ecx, dword [0x100860c4]
call fcn.10012630
push 1
push 1
push 0xffffff75
push 0x33
push 0
mov dword [0x100860d8], eax
push 0x1001c9b0
sub esp, 0x18
mov dword [eax + 0x38], 0x18
mov esi, esp
mov dword [eax + 0x30], 0x10
mov dword [eax + 0x34], 0x10
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x10079a60
push esi
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 1], 0
mov ecx, dword [0x100860c4]
call fcn.10012630
push 1
push 0
push 0xffffff75
push 0x44
push 0
mov dword [0x100860dc], eax
push 0x1001c8e0
mov dword [eax + 0x38], 0x18
sub esp, 0x18
mov esi, esp
mov dword [eax + 0x30], 0x10
mov dword [eax + 0x34], 0x10
xor eax, eax
push 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x10079a64
push esi
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 1], 0
mov ecx, dword [0x100860c4]
call fcn.10012630
mov dword [0x100860e0], eax
mov dword [eax + 0x38], 0x18
mov dword [eax + 0x30], 0x10
mov dword [eax + 0x34], 0x10
mov eax, dword [0x100860c4]
mov byte [eax + 0x38], 1
mov eax, 0x10086088
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10042ce4
mov esp, ebp
pop ebp
ret
call fcn.10007df0
call fcn.1004fd3c
int3