Function at 0x1003d0db
Capabilities:
Terminate process

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [esp + 0x44]
imul eax, ebx, 0xc
push edi
push 0x10095b64
push dword [esp + 0x54]
add eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
call fcn.1002c2b0
mov edi, eax
xor ebp, ebp
pop ecx
pop ecx
test edi, edi
jne 0x1003d11b
push str.Out_of_memory
call fcn.1005c7aa
jmp 0x1003da55
mov eax, dword [edi + 8]
test eax, eax
jg 0x1003d13c
push ebx
push esi
call fcn.1003d00f
push eax
push str.Missing_value_for__s
call fcn.1005c7aa
add esp, 0x10
jmp 0x1003dbb5
mov ecx, dword [esi + 4]
cmp ecx, 0x10
ja case.0x1003d148.10
jmp dword [ecx*4 + 0x1003dbbf]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x1003da4f
mov eax, dword [edi + 4]
push dword [eax]
call fcn.10040296
pop ecx
cmp eax, 0xffffffff
jne 0x1003d18c
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Invalid_key_name__s_in__s
call fcn.1005c7aa
add esp, 0x14
jmp 0x1003dba4
mov eax, dword [edi + 4]
push dword [eax]
call fcn.10040296
pop ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
mov ebp, ebx
jmp 0x1003dba4
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x1003da4f
mov eax, dword [edi + 4]
push str.true
push dword [eax]
call fcn.1006b711
pop ecx
pop ecx
test eax, eax
jne 0x1003d1d2
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], ebx
jmp 0x1003d1a0
mov eax, dword [edi + 4]
push str.false
push dword [eax]
call fcn.1006b711
pop ecx
pop ecx
test eax, eax
jne 0x1003d1f2
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], ebp
jmp 0x1003d1a0
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Invalid_value__s_in__s
jmp 0x1003d17f
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x1003da4f
mov eax, dword [edi + 4]
push dword [eax]
call fcn.10040330
jmp 0x1003d196
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x1003da4f
push dword [esp + 0x50]
call fcn.1006c3fd
pop ecx
mov ecx, dword [esp + 0x10]
fstp dword [esp + 0x4c]
movss xmm0, dword [esp + 0x4c]
mov eax, dword [ecx + 4]
movss dword [eax], xmm0
mov ebp, ebx
mov ebx, ecx
jmp 0x1003dba8
cmp eax, 3
jne 0x1003da4f
mov eax, dword [edi + 4]
push dword [eax + ebp]
call fcn.1006c3fd
fstp dword [esp + ebp + 0x3c]
add ebp, 4
pop ecx
cmp ebp, 0xc
jl 0x1003d262
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push dword [ebx + 4]
push eax
call fcn.10040c9e
mov eax, dword [ebx + 4]
pop ecx
pop ecx
and dword [eax + 0xc], 0
xor ebp, ebp
inc ebp
jmp 0x1003dba8
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx + 4]
cmp eax, 4
jne 0x1003da4f
mov eax, dword [edi + 4]
push dword [eax + ebp]
call fcn.1006c3fd
fstp dword [esp + ebp + 0x3c]
add ebp, 4
pop ecx
cmp ebp, 0xc
jl 0x1003d2ac
lea eax, [esp + 0x38]
push esi
push eax
call fcn.10040b5c
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.10040330
add esp, 0xc
mov dword [esi + 0xc], eax
jmp 0x1003d294
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x1003da4f
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push 0x40
push dword [eax]
push dword [ecx + 4]
call fcn.1002c49b
add esp, 0xc
jmp 0x1003d1a0
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1002a60b
xor ebx, ebx
mov edx, eax
inc ebx
pop ecx
cmp dword [edi + 8], ebx
jne 0x1003da4f
test edx, edx
je 0x1003d34c
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
lea eax, [ecx + 1]
mov dword [esp + 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d331
sub ecx, dword [esp + 0x48]
je 0x1003d34c
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], edx
jmp 0x1003d250
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d354
sub ecx, edx
je 0x1003dba4
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Unknown_weapon__s_in__s
jmp 0x1003d17f
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1003dba4
cmp eax, 7
jl 0x1003da4f
add eax, 0xfffffff9
and eax, 0x80000003
jns 0x1003d3a1
dec eax
or eax, 0xfffffffc
add eax, ebx
jne 0x1003da4f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp dword [eax], ebp
je 0x1003d3cb
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
push str._s_already_assigned.
jmp 0x1003db9c
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1006b684
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.10040296
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x198], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.10040330
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + 0x194], eax
inc dword [0x10156c24]
push 3
pop ecx
mov eax, ecx
mov dword [esp + 0x20], ecx
cmp dword [edi + 8], ecx
jle 0x1003d1a0
mov edx, dword [edi + 4]
mov eax, dword [edx + eax*4]
mov ecx, eax
mov dword [esp + 0x28], eax
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d433
sub ecx, dword [esp + 0x2c]
je 0x1003d453
push dword [esp + 0x28]
call fcn.1002a3e6
mov edx, dword [edi + 4]
pop ecx
mov dword [esp + 0x2c], eax
jmp 0x1003d457
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x20]
push dword [edx + eax*4 + 4]
call fcn.10040330
mov edx, dword [esp + 0x24]
pop ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + edx*4 + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + edx*4 + 0xc]
mov dword [esp + 0x18], eax
lea eax, [edx - 3]
cdq
and edx, 3
lea ecx, [edx + eax]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sar ecx, 2
mov dword [esp + 0x28], ecx
cmp byte [eax], 0x21
jne 0x1003d4b0
imul ecx, ecx, 0x18
inc eax
mov dword [edx + 0x190], ebx
mov dword [esp + 0x18], eax
mov dword [ecx + edx + 0x20], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d4bb
sub ecx, dword [esp + 0x24]
test cl, 1
jne 0x1003d678
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d4da
sub ecx, dword [esp + 0x24]
test cl, 1
jne 0x1003d666
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d4f9
sub ecx, dword [esp + 0x24]
je 0x1003d540
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d511
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d52b
sub ecx, dword [esp + 0x24]
cmp dword [esp + 0x30], ecx
jne 0x1003d5e3
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d54b
imul eax, dword [esp + 0x28], 0x18
sub ecx, dword [esp + 0x30]
push dword [esp + 0x18]
shr ecx, 1
mov dword [esp + 0x28], eax
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x38]
mov dword [ecx + edx + 0x10], eax
call fcn.1002a6e5
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x18], eax
test eax, eax
je 0x1003d63c
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d59a
sub ecx, edx
je 0x1003d5bf
push dword [esp + 0x1c]
call fcn.1002a6e5
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x14], eax
test eax, eax
je 0x1003d5f8
cmp dword [esp + 0x28], 0xf
je 0x1003d1a0
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 8]
jl 0x1003d420
jmp 0x1003d1a0
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
push str.Original_and_replacement_data_must_be_of_equal_length_in__s
jmp 0x1003d688
push dword [ecx]
call fcn.10063dc3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc eax
imul esi, eax, 0x18
mov dword [ecx], ebp
push dword [esi + ecx]
call fcn.10063dc3
mov eax, dword [esp + 0x1c]
push dword [esp + 0x54]
push dword [esp + 0x54]
mov dword [esi + eax], ebp
call fcn.1003d00f
push eax
push str.Invalid_hex_data_for_original_data_in__s
call fcn.1005c7aa
add esp, 0x18
jmp 0x1003d1a0
push dword [ecx]
call fcn.10063dc3
mov eax, dword [esp + 0x18]
push dword [esp + 0x50]
push esi
mov dword [eax], ebp
call fcn.1003d00f
push eax
push str.Invalid_hex_data_for_replacement_data_in__s
call fcn.1005c7aa
add esp, 0x14
jmp 0x1003d1a0
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
push str.Invalid_replacement_data_length_in__s
jmp 0x1003d688
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
push str.Invalid_original_data_length_in__s
call fcn.1005c7aa
add esp, 0x10
jmp 0x1003d1a0
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1003dba4
cmp eax, 6
jl 0x1003da4f
add eax, 0xfffffffa
push 3
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x1003da4f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp dword [eax], ebp
jne 0x1003d3b6
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1006b684
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.10040296
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x198], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.10040330
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + 0x194], eax
inc dword [0x10156c28]
push 3
pop eax
mov ecx, eax
mov dword [esp + 0x24], eax
cmp dword [edi + 8], eax
jle 0x1003d1a0
mov eax, dword [edi + 4]
push dword [eax + ecx*4]
call fcn.10040330
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], eax
push 3
mov eax, dword [ecx + edx*4 + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + edx*4 + 8]
mov dword [esp + 0x1c], eax
lea eax, [edx - 2]
cdq
pop ecx
idiv ecx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
cmp byte [eax], 0x21
jne 0x1003d777
imul ecx, ecx, 0x18
inc eax
mov dword [edx + 0x190], ebx
mov dword [esp + 0x18], eax
mov dword [ecx + edx + 0x20], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d782
sub ecx, dword [esp + 0x34]
test cl, 1
jne 0x1003d678
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d7a1
sub ecx, dword [esp + 0x34]
test cl, 1
jne 0x1003d666
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d7c0
sub ecx, dword [esp + 0x34]
je 0x1003d807
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d7d8
sub ecx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d7f2
sub ecx, dword [esp + 0x34]
cmp dword [esp + 0x30], ecx
jne 0x1003d5e3
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d812
imul eax, dword [esp + 0x20], 0x18
sub ecx, dword [esp + 0x34]
shr ecx, 1
mov dword [esp + 0x28], eax
mov dword [eax + edx + 0xc], ecx
call fcn.10041d5d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
push dword [esp + 0x18]
mov dword [edx + ecx + 0x10], eax
call fcn.1002a6e5
mov edx, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x18], eax
test eax, eax
je 0x1003d63c
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d866
sub ecx, edx
je 0x1003d88b
push dword [esp + 0x1c]
call fcn.1002a6e5
mov edx, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x14], eax
test eax, eax
je 0x1003d8af
cmp dword [esp + 0x20], 0xf
je 0x1003d1a0
mov ecx, dword [esp + 0x24]
add ecx, 3
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 8]
jl 0x1003d722
jmp 0x1003d1a0
push dword [ecx]
call fcn.10063dc3
mov eax, dword [esp + 0x24]
jmp 0x1003d603
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1003dba4
cmp eax, 5
jne 0x1003da4f
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1006b684
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1006b684
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1006b684
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.10040330
mov word [esi + 0xc], ax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1006b684
add esp, 0x14
mov dword [esi + 0xe], eax
inc dword [0x10156c30]
jmp 0x1003d1a0
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1003dba4
cmp eax, 3
jne 0x1003da4f
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.10040296
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1006b684
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.10040330
add esp, 0xc
mov dword [esi + 8], eax
jmp 0x1003d1a0
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1003dba4
cmp eax, 5
jne 0x1003da4f
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1006b684
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.10040330
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.10040330
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.10040330
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.10040330
add esp, 0x14
mov dword [esi + 0x10], eax
jmp 0x1003d1a0
dec eax
cmp eax, 7
ja 0x1003da4f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov dword [eax], ebp
cmp dword [edi + 8], ebp
jle 0x1003da37
mov eax, dword [edi + 4]
push dword [eax + ebp*4]
call fcn.10040296
pop ecx
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1003da1c
mov eax, dword [esp + 0x4c]
mov byte [eax + ebp + 4], cl
inc dword [eax]
inc ebp
cmp ebp, dword [edi + 8]
jl 0x1003d9f7
jmp 0x1003da37
push ebx
push esi
call fcn.1003d00f
push eax
mov eax, dword [edi + 4]
push dword [eax + ebp*4]
push str.Invalid_key_name__s_in__s
call fcn.1005c7aa
add esp, 0x14
xor ebp, ebp
inc ebp
jmp 0x1003dba4
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x1003dba4
cmp eax, 5
je 0x1003da5b
push edi
call fcn.1002c400
pop ecx
jmp 0x1003dbb5
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1006b684
mov ecx, dword [esp + 0x4c]
mov dword [esp], str.incoming_RPC
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1006b711
pop ecx
pop ecx
test eax, eax
jne 0x1003da97
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], ebp
jmp 0x1003dafe
mov eax, dword [edi + 4]
push str.outcoming_RPC
push dword [eax + 4]
call fcn.1006b711
pop ecx
pop ecx
test eax, eax
jne 0x1003dab6
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], ebx
jmp 0x1003dafe
mov eax, dword [edi + 4]
push str.incoming_packet
push dword [eax + 4]
call fcn.1006b711
pop ecx
pop ecx
test eax, eax
jne 0x1003dad9
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], 2
jmp 0x1003dafe
mov eax, dword [edi + 4]
push str.outcoming_packet
push dword [eax + 4]
call fcn.1006b711
pop ecx
pop ecx
test eax, eax
jne 0x1003db74
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], 3
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.10040330
mov dword [esp + 0x38], eax
pop ecx
cmp eax, 0x100
jl 0x1003db2e
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
push dword [esp + 0x40]
push str.Invalid_packet_id__d_in__s
jmp 0x1003d17f
mov esi, dword [esp + 0x48]
mov byte [esi + 9], al
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.10040296
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.10040330
test eax, eax
pop ecx
setne al
mov byte [esi + 8], al
mov eax, dword [esi + 0xc]
pop ecx
movzx ecx, byte [esi + 9]
inc dword [0x10156c2c]
lea eax, [eax + ecx*4]
mov dword [eax*4 + 0x10155c1f], esi
jmp 0x1003d1a0
push dword [esp + 0x4c]
push esi
call fcn.1003d00f
push eax
mov eax, dword [edi + 4]
push dword [eax + 4]
push str.Invalid_type__s_in__s
jmp 0x1003d17f
push ebx
push esi
call fcn.1003d00f
push eax
push str.BUG:__s_has_invalid_data_type
call fcn.1005c7aa
add esp, 0x10
mov ebx, dword [esp + 0x10]
push edi
call fcn.1002c400
pop ecx
test ebp, ebp
je 0x1003dbb5
inc dword [ebx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret