Function at 0x10038ee8
Capabilities:
Terminate process

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x44]
imul eax, ebp, 0xc
push edi
push 0x10086f5c
push dword [esp + 0x54]
add eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
call fcn.1002b286
mov edi, eax
xor ebx, ebx
pop ecx
pop ecx
test edi, edi
jne 0x10038f29
push str.Out_of_memory
call fcn.1004cc11
pop ecx
jmp 0x100399e6
mov eax, dword [edi + 8]
test eax, eax
jg 0x10038f4a
push ebp
push esi
call fcn.10038e1c
push eax
push str.Missing_value_for__s
call fcn.1004cc11
add esp, 0x10
jmp 0x100399e6
mov ecx, dword [esi + 4]
cmp ecx, 0x10
ja case.0x10038f56.10
jmp dword [ecx*4 + 0x100399f0]
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x10039865
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1003c1ce
pop ecx
cmp eax, 0xffffffff
jne 0x10038f9a
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Invalid_key_name__s_in__s
call fcn.1004cc11
add esp, 0x14
jmp 0x100399d4
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1003c1ce
pop ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
mov ebx, ebp
jmp 0x100399d4
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x10039865
mov eax, dword [edi + 4]
push str.true
push dword [eax]
call fcn.1005cc51
pop ecx
pop ecx
test eax, eax
jne 0x10038fe0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], ebp
jmp 0x10038fae
mov eax, dword [edi + 4]
push str.false
push dword [eax]
call fcn.1005cc51
pop ecx
pop ecx
test eax, eax
jne 0x10039000
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], ebx
jmp 0x10038fae
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Invalid_value__s_in__s
jmp 0x10038f8d
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x10039865
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1003c268
jmp 0x10038fa4
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x10039865
push dword [esp + 0x50]
call fcn.1005e4b0
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 ebx, ebp
mov ebp, ecx
jmp 0x100399d8
cmp eax, 3
jne 0x10039865
mov eax, dword [edi + 4]
push dword [eax + ebx]
call fcn.1005e4b0
fstp dword [esp + ebx + 0x3c]
add ebx, 4
pop ecx
cmp ebx, 0xc
jl 0x10039070
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x38]
push dword [ebp + 4]
push eax
call fcn.1003cbcd
mov eax, dword [ebp + 4]
pop ecx
pop ecx
and dword [eax + 0xc], 0
xor ebx, ebx
inc ebx
jmp 0x100399d8
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x48], ecx
cmp eax, 4
jne 0x10039865
mov eax, dword [edi + 4]
push dword [eax + ebx]
call fcn.1005e4b0
fstp dword [esp + ebx + 0x3c]
add ebx, 4
pop ecx
cmp ebx, 0xc
jl 0x100390be
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x38]
push esi
push eax
call fcn.1003ca8b
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003c268
add esp, 0xc
mov dword [esi + 0xc], eax
jmp 0x100390a2
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x10039865
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push 0x40
push dword [eax]
push dword [ecx + 4]
call fcn.1002b471
add esp, 0xc
jmp 0x10038fae
mov eax, dword [edi + 4]
push dword [eax]
call fcn.100295e1
xor ebp, ebp
mov edx, eax
inc ebp
pop ecx
cmp dword [edi + 8], ebp
jne 0x10039865
test edx, edx
je 0x10039162
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 0x10039147
sub ecx, dword [esp + 0x48]
je 0x10039162
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], edx
jmp 0x1003905e
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003916a
sub ecx, edx
je 0x100399d4
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Unknown_weapon__s_in__s
jmp 0x10038f8d
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x100399d4
cmp eax, 7
jl 0x10039865
add eax, 0xfffffff9
and eax, 0x80000003
jns 0x100391b7
dec eax
or eax, 0xfffffffc
add eax, ebp
jne 0x10039865
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
je 0x100391e1
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
push str._s_already_assigned.
jmp 0x100399cc
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1005cbc4
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1003c1ce
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x198], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003c268
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + 0x194], eax
inc dword [0x10155300]
push 3
pop ecx
mov eax, ecx
mov dword [esp + 0x20], ecx
cmp dword [edi + 8], ecx
jle 0x10038fae
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 0x10039249
sub ecx, dword [esp + 0x2c]
je 0x10039269
push dword [esp + 0x28]
call fcn.100293bc
mov edx, dword [edi + 4]
pop ecx
mov dword [esp + 0x2c], eax
jmp 0x1003926d
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x20]
push dword [edx + eax*4 + 4]
call fcn.1003c268
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 0x100392c6
imul ecx, ecx, 0x18
inc eax
mov dword [edx + 0x190], ebp
mov dword [esp + 0x18], eax
mov dword [ecx + edx + 0x20], ebp
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100392d1
sub ecx, dword [esp + 0x24]
test cl, 1
jne 0x1003948e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100392f0
sub ecx, dword [esp + 0x24]
test cl, 1
jne 0x1003947c
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003930f
sub ecx, dword [esp + 0x24]
je 0x10039356
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039327
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 0x10039341
sub ecx, dword [esp + 0x24]
cmp dword [esp + 0x30], ecx
jne 0x100393f9
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039361
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.100296bb
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x18], eax
test eax, eax
je 0x10039452
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100393b0
sub ecx, edx
je 0x100393d5
push dword [esp + 0x1c]
call fcn.100296bb
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x14], eax
test eax, eax
je 0x1003940e
cmp dword [esp + 0x28], 0xf
je 0x10038fae
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 8]
jl 0x10039236
jmp 0x10038fae
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
push str.Original_and_replacement_data_must_be_of_equal_length_in__s
jmp 0x1003949e
push dword [ecx]
call fcn.100545e3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc eax
imul esi, eax, 0x18
mov dword [ecx], ebx
push dword [esi + ecx]
call fcn.100545e3
mov eax, dword [esp + 0x1c]
push dword [esp + 0x54]
push dword [esp + 0x54]
mov dword [esi + eax], ebx
call fcn.10038e1c
push eax
push str.Invalid_hex_data_for_original_data_in__s
call fcn.1004cc11
add esp, 0x18
jmp 0x10038fae
push dword [ecx]
call fcn.100545e3
mov eax, dword [esp + 0x18]
push dword [esp + 0x50]
push esi
mov dword [eax], ebx
call fcn.10038e1c
push eax
push str.Invalid_hex_data_for_replacement_data_in__s
call fcn.1004cc11
add esp, 0x14
jmp 0x10038fae
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
push str.Invalid_replacement_data_length_in__s
jmp 0x1003949e
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
push str.Invalid_original_data_length_in__s
call fcn.1004cc11
add esp, 0x10
jmp 0x10038fae
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x100399d4
cmp eax, 6
jl 0x10039865
add eax, 0xfffffffa
push 3
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x10039865
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
jne 0x100391cc
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1005cbc4
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1003c1ce
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x198], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003c268
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + 0x194], eax
inc dword [0x10155304]
push 3
pop eax
mov ecx, eax
mov dword [esp + 0x24], eax
cmp dword [edi + 8], eax
jle 0x10038fae
mov eax, dword [edi + 4]
push dword [eax + ecx*4]
call fcn.1003c268
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 0x1003958d
imul ecx, ecx, 0x18
inc eax
mov dword [edx + 0x190], ebp
mov dword [esp + 0x18], eax
mov dword [ecx + edx + 0x20], ebp
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039598
sub ecx, dword [esp + 0x34]
test cl, 1
jne 0x1003948e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100395b7
sub ecx, dword [esp + 0x34]
test cl, 1
jne 0x1003947c
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100395d6
sub ecx, dword [esp + 0x34]
je 0x1003961d
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100395ee
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 0x10039608
sub ecx, dword [esp + 0x34]
cmp dword [esp + 0x30], ecx
jne 0x100393f9
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039628
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.1003dad5
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.100296bb
mov edx, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x18], eax
test eax, eax
je 0x10039452
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003967c
sub ecx, edx
je 0x100396a1
push dword [esp + 0x1c]
call fcn.100296bb
mov edx, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x14], eax
test eax, eax
je 0x100396c5
cmp dword [esp + 0x20], 0xf
je 0x10038fae
mov ecx, dword [esp + 0x24]
add ecx, 3
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 8]
jl 0x10039538
jmp 0x10038fae
push dword [ecx]
call fcn.100545e3
mov eax, dword [esp + 0x24]
jmp 0x10039419
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x100399d4
cmp eax, 5
jne 0x10039865
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1005cbc4
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1005cbc4
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1005cbc4
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003c268
mov word [esi + 0xc], ax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1005cbc4
add esp, 0x14
mov dword [esi + 0xe], eax
inc dword [0x1015530c]
jmp 0x10038fae
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x100399d4
cmp eax, 3
jne 0x10039865
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1003c1ce
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1005cbc4
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003c268
add esp, 0xc
mov dword [esi + 8], eax
jmp 0x10038fae
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x100399d4
cmp eax, 5
jne 0x10039865
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1005cbc4
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1003c268
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003c268
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003c268
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1003c268
add esp, 0x14
mov dword [esi + 0x10], eax
jmp 0x10038fae
dec eax
cmp eax, 7
ja 0x10039865
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov dword [eax], ebx
cmp dword [edi + 8], ebx
jle 0x1003984d
mov eax, dword [edi + 4]
push dword [eax + ebx*4]
call fcn.1003c1ce
pop ecx
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10039832
mov eax, dword [esp + 0x4c]
mov byte [eax + ebx + 4], cl
inc dword [eax]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x1003980d
jmp 0x1003984d
push ebp
push esi
call fcn.10038e1c
push eax
mov eax, dword [edi + 4]
push dword [eax + ebx*4]
push str.Invalid_key_name__s_in__s
call fcn.1004cc11
add esp, 0x14
xor ebx, ebx
inc ebx
jmp 0x100399d4
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x100399d4
cmp eax, 5
je 0x1003988b
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
push dword [edi + 8]
push str.Wrong_number_of_arguments___d__for__s
call fcn.1004cc11
push edi
call fcn.1002b3d6
add esp, 0x18
jmp 0x100399e6
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.1005cbc4
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.1005cc51
pop ecx
pop ecx
test eax, eax
jne 0x100398c7
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], ebx
jmp 0x1003992e
mov eax, dword [edi + 4]
push str.outcoming_RPC
push dword [eax + 4]
call fcn.1005cc51
pop ecx
pop ecx
test eax, eax
jne 0x100398e6
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], ebp
jmp 0x1003992e
mov eax, dword [edi + 4]
push str.incoming_packet
push dword [eax + 4]
call fcn.1005cc51
pop ecx
pop ecx
test eax, eax
jne 0x10039909
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], 2
jmp 0x1003992e
mov eax, dword [edi + 4]
push str.outcoming_packet
push dword [eax + 4]
call fcn.1005cc51
pop ecx
pop ecx
test eax, eax
jne 0x100399a4
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], 3
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003c268
mov dword [esp + 0x38], eax
pop ecx
cmp eax, 0x100
jl 0x1003995e
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
push dword [esp + 0x40]
push str.Invalid_packet_id__d_in__s
jmp 0x10038f8d
mov ebx, dword [esp + 0x48]
mov byte [ebx + 9], al
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003c1ce
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1003c268
test eax, eax
pop ecx
setne al
mov byte [ebx + 8], al
mov eax, dword [ebx + 0xc]
pop ecx
movzx ecx, byte [ebx + 9]
inc dword [0x10155308]
lea eax, [eax + ecx*4]
mov dword [eax*4 + 0x10174db7], ebx
jmp 0x10038fae
push dword [esp + 0x4c]
push esi
call fcn.10038e1c
push eax
mov eax, dword [edi + 4]
push dword [eax + 4]
push str.Invalid_type__s_in__s
jmp 0x10038f8d
push ebp
push esi
call fcn.10038e1c
push eax
push str.BUG:__s_has_invalid_data_type
call fcn.1004cc11
add esp, 0x10
mov ebp, dword [esp + 0x10]
push edi
call fcn.1002b3d6
pop ecx
test ebx, ebx
je 0x100399e6
inc dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret