Function at 0x10038928
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 0x10084c40
push dword [esp + 0x54]
add eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
call fcn.1002a94d
mov edi, eax
xor ebx, ebx
pop ecx
pop ecx
test edi, edi
jne 0x10038969
push str.Out_of_memory
call fcn.1004c6ea
pop ecx
jmp 0x10039426
mov eax, dword [edi + 8]
test eax, eax
jg 0x1003898a
push ebp
push esi
call fcn.1003885c
push eax
push str.Missing_value_for__s
call fcn.1004c6ea
add esp, 0x10
jmp 0x10039426
mov ecx, dword [esi + 4]
cmp ecx, 0x10
ja case.0x10038996.10
jmp dword [ecx*4 + 0x10039430]
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x100392a5
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1003bbba
pop ecx
cmp eax, 0xffffffff
jne 0x100389da
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Invalid_key_name__s_in__s
call fcn.1004c6ea
add esp, 0x14
jmp 0x10039414
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1003bbba
pop ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
mov ebx, ebp
jmp 0x10039414
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x100392a5
mov eax, dword [edi + 4]
push str.true
push dword [eax]
call fcn.1005d411
pop ecx
pop ecx
test eax, eax
jne 0x10038a20
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], ebp
jmp 0x100389ee
mov eax, dword [edi + 4]
push str.false
push dword [eax]
call fcn.1005d411
pop ecx
pop ecx
test eax, eax
jne 0x10038a40
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], ebx
jmp 0x100389ee
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Invalid_value__s_in__s
jmp 0x100389cd
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x100392a5
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1003bc54
jmp 0x100389e4
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x100392a5
push dword [esp + 0x50]
call fcn.1005e1cb
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 0x10039418
cmp eax, 3
jne 0x100392a5
mov eax, dword [edi + 4]
push dword [eax + ebx]
call fcn.1005e1cb
fstp dword [esp + ebx + 0x3c]
add ebx, 4
pop ecx
cmp ebx, 0xc
jl 0x10038ab0
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x38]
push dword [ebp + 4]
push eax
call fcn.1003c58a
mov eax, dword [ebp + 4]
pop ecx
pop ecx
and dword [eax + 0xc], 0
xor ebx, ebx
inc ebx
jmp 0x10039418
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x48], ecx
cmp eax, 4
jne 0x100392a5
mov eax, dword [edi + 4]
push dword [eax + ebx]
call fcn.1005e1cb
fstp dword [esp + ebx + 0x3c]
add ebx, 4
pop ecx
cmp ebx, 0xc
jl 0x10038afe
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x38]
push esi
push eax
call fcn.1003c448
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003bc54
add esp, 0xc
mov dword [esi + 0xc], eax
jmp 0x10038ae2
xor ebp, ebp
inc ebp
cmp eax, ebp
jne 0x100392a5
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push 0x40
push dword [eax]
push dword [ecx + 4]
call fcn.1002ab38
add esp, 0xc
jmp 0x100389ee
mov eax, dword [edi + 4]
push dword [eax]
call fcn.10028c5d
xor ebp, ebp
mov edx, eax
inc ebp
pop ecx
cmp dword [edi + 8], ebp
jne 0x100392a5
test edx, edx
je 0x10038ba2
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 0x10038b87
sub ecx, dword [esp + 0x48]
je 0x10038ba2
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10038a9e
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038baa
sub ecx, edx
je 0x10039414
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
mov eax, dword [edi + 4]
push dword [eax]
push str.Unknown_weapon__s_in__s
jmp 0x100389cd
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x10039414
cmp eax, 7
jl 0x100392a5
add eax, 0xfffffff9
and eax, 0x80000003
jns 0x10038bf7
dec eax
or eax, 0xfffffffc
add eax, ebp
jne 0x100392a5
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
je 0x10038c21
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
push str._s_already_assigned.
jmp 0x1003940c
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1005d384
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1003bbba
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x198], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003bc54
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + 0x194], eax
inc dword [0x1017e934]
push 3
pop ecx
mov eax, ecx
mov dword [esp + 0x20], ecx
cmp dword [edi + 8], ecx
jle 0x100389ee
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 0x10038c89
sub ecx, dword [esp + 0x2c]
je 0x10038ca9
push dword [esp + 0x28]
call fcn.10028a38
mov edx, dword [edi + 4]
pop ecx
mov dword [esp + 0x2c], eax
jmp 0x10038cad
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x20]
push dword [edx + eax*4 + 4]
call fcn.1003bc54
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 0x10038d06
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 0x10038d11
sub ecx, dword [esp + 0x24]
test cl, 1
jne 0x10038ece
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038d30
sub ecx, dword [esp + 0x24]
test cl, 1
jne 0x10038ebc
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038d4f
sub ecx, dword [esp + 0x24]
je 0x10038d96
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038d67
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 0x10038d81
sub ecx, dword [esp + 0x24]
cmp dword [esp + 0x30], ecx
jne 0x10038e39
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038da1
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.10028d37
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x18], eax
test eax, eax
je 0x10038e92
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038df0
sub ecx, edx
je 0x10038e15
push dword [esp + 0x1c]
call fcn.10028d37
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x14], eax
test eax, eax
je 0x10038e4e
cmp dword [esp + 0x28], 0xf
je 0x100389ee
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 8]
jl 0x10038c76
jmp 0x100389ee
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
push str.Original_and_replacement_data_must_be_of_equal_length_in__s
jmp 0x10038ede
push dword [ecx]
call fcn.10053d23
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.10053d23
mov eax, dword [esp + 0x1c]
push dword [esp + 0x54]
push dword [esp + 0x54]
mov dword [esi + eax], ebx
call fcn.1003885c
push eax
push str.Invalid_hex_data_for_original_data_in__s
call fcn.1004c6ea
add esp, 0x18
jmp 0x100389ee
push dword [ecx]
call fcn.10053d23
mov eax, dword [esp + 0x18]
push dword [esp + 0x50]
push esi
mov dword [eax], ebx
call fcn.1003885c
push eax
push str.Invalid_hex_data_for_replacement_data_in__s
call fcn.1004c6ea
add esp, 0x14
jmp 0x100389ee
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
push str.Invalid_replacement_data_length_in__s
jmp 0x10038ede
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
push str.Invalid_original_data_length_in__s
call fcn.1004c6ea
add esp, 0x10
jmp 0x100389ee
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x10039414
cmp eax, 6
jl 0x100392a5
add eax, 0xfffffffa
push 3
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x100392a5
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
jne 0x10038c0c
mov eax, dword [edi + 4]
push dword [eax]
call fcn.1005d384
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1003bbba
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x198], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003bc54
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + 0x194], eax
inc dword [0x1017e938]
push 3
pop eax
mov ecx, eax
mov dword [esp + 0x24], eax
cmp dword [edi + 8], eax
jle 0x100389ee
mov eax, dword [edi + 4]
push dword [eax + ecx*4]
call fcn.1003bc54
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 0x10038fcd
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 0x10038fd8
sub ecx, dword [esp + 0x34]
test cl, 1
jne 0x10038ece
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038ff7
sub ecx, dword [esp + 0x34]
test cl, 1
jne 0x10038ebc
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039016
sub ecx, dword [esp + 0x34]
je 0x1003905d
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003902e
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 0x10039048
sub ecx, dword [esp + 0x34]
cmp dword [esp + 0x30], ecx
jne 0x10038e39
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039068
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.1003d6ba
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.10028d37
mov edx, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x18], eax
test eax, eax
je 0x10038e92
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100390bc
sub ecx, edx
je 0x100390e1
push dword [esp + 0x1c]
call fcn.10028d37
mov edx, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx + 0x14], eax
test eax, eax
je 0x10039105
cmp dword [esp + 0x20], 0xf
je 0x100389ee
mov ecx, dword [esp + 0x24]
add ecx, 3
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 8]
jl 0x10038f78
jmp 0x100389ee
push dword [ecx]
call fcn.10053d23
mov eax, dword [esp + 0x24]
jmp 0x10038e59
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x10039414
cmp eax, 5
jne 0x100392a5
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1005d384
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1005d384
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1005d384
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003bc54
mov word [esi + 0xc], ax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1005d384
add esp, 0x14
mov dword [esi + 0xe], eax
inc dword [0x1017e940]
jmp 0x100389ee
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x10039414
cmp eax, 3
jne 0x100392a5
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1003bbba
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1005d384
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003bc54
add esp, 0xc
mov dword [esi + 8], eax
jmp 0x100389ee
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x10039414
cmp eax, 5
jne 0x100392a5
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push dword [eax]
mov esi, dword [ecx + 4]
call fcn.1005d384
mov dword [esi], eax
mov eax, dword [edi + 4]
push dword [eax + 4]
call fcn.1003bc54
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003bc54
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003bc54
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1003bc54
add esp, 0x14
mov dword [esi + 0x10], eax
jmp 0x100389ee
dec eax
cmp eax, 7
ja 0x100392a5
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 0x1003928d
mov eax, dword [edi + 4]
push dword [eax + ebx*4]
call fcn.1003bbba
pop ecx
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10039272
mov eax, dword [esp + 0x4c]
mov byte [eax + ebx + 4], cl
inc dword [eax]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x1003924d
jmp 0x1003928d
push ebp
push esi
call fcn.1003885c
push eax
mov eax, dword [edi + 4]
push dword [eax + ebx*4]
push str.Invalid_key_name__s_in__s
call fcn.1004c6ea
add esp, 0x14
xor ebx, ebx
inc ebx
jmp 0x10039414
xor ebp, ebp
inc ebp
cmp eax, ebp
jle 0x10039414
cmp eax, 5
je 0x100392cb
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
push dword [edi + 8]
push str.Wrong_number_of_arguments___d__for__s
call fcn.1004c6ea
push edi
call fcn.1002aa9d
add esp, 0x18
jmp 0x10039426
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.1005d384
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.1005d411
pop ecx
pop ecx
test eax, eax
jne 0x10039307
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], ebx
jmp 0x1003936e
mov eax, dword [edi + 4]
push str.outcoming_RPC
push dword [eax + 4]
call fcn.1005d411
pop ecx
pop ecx
test eax, eax
jne 0x10039326
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], ebp
jmp 0x1003936e
mov eax, dword [edi + 4]
push str.incoming_packet
push dword [eax + 4]
call fcn.1005d411
pop ecx
pop ecx
test eax, eax
jne 0x10039349
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], 2
jmp 0x1003936e
mov eax, dword [edi + 4]
push str.outcoming_packet
push dword [eax + 4]
call fcn.1005d411
pop ecx
pop ecx
test eax, eax
jne 0x100393e4
mov eax, dword [esp + 0x48]
mov dword [eax + 0xc], 3
mov eax, dword [edi + 4]
push dword [eax + 8]
call fcn.1003bc54
mov dword [esp + 0x38], eax
pop ecx
cmp eax, 0x100
jl 0x1003939e
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
push dword [esp + 0x40]
push str.Invalid_packet_id__d_in__s
jmp 0x100389cd
mov ebx, dword [esp + 0x48]
mov byte [ebx + 9], al
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1003bbba
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call fcn.1003bc54
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 [0x1017e93c]
lea eax, [eax + ecx*4]
mov dword [eax*4 + 0x1017d92f], ebx
jmp 0x100389ee
push dword [esp + 0x4c]
push esi
call fcn.1003885c
push eax
mov eax, dword [edi + 4]
push dword [eax + 4]
push str.Invalid_type__s_in__s
jmp 0x100389cd
push ebp
push esi
call fcn.1003885c
push eax
push str.BUG:__s_has_invalid_data_type
call fcn.1004c6ea
add esp, 0x10
mov ebp, dword [esp + 0x10]
push edi
call fcn.1002aa9d
pop ecx
test ebx, ebx
je 0x10039426
inc dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret