Function at 0x100470a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x54], edx
xor eax, eax
mov dword [esp + 0x3c], edi
xor ecx, ecx
mov dword [esp + 0x68], eax
xorps xmm0, xmm0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x4c], ecx
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x34], eax
cmp dword [edi + 0x40], ecx
jne 0x10048021
cmp byte [eax + 0x40], cl
jne 0x10048021
mov ecx, edi
call fcn.10046e00
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x10048021
mov eax, dword [edi]
xor esi, esi
xor edx, edx
test dword [eax + 0x18], 0x800000
je 0x10047150
mov edx, ebx
mov ecx, edi
call fcn.10067110
mov edx, eax
mov ecx, edx
test edx, edx
je 0x10047169
cmp byte [ecx + 8], 0x6d
jne 0x10047162
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10047156
xor eax, eax
mov ecx, edi
test esi, esi
cmovne eax, edx
mov edx, ebx
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], eax
call fcn.10041f90
test eax, eax
jne 0x10048021
cmp dword [esp + 0x40], eax
mov edx, ebx
mov ecx, edi
setne al
push eax
call fcn.10046e90
add esp, 4
test eax, eax
jne 0x10048021
mov edx, dword [ebx + 0x44]
mov ebx, 0xfff0bdc0
mov esi, dword [esp + 0x34]
test edx, edx
je 0x100471d3
mov ecx, dword [esi + 0x14]
xor ebx, ebx
test ecx, ecx
jle 0x100471d3
mov eax, dword [esi + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x100471d3
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x100471c7
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov esi, dword [esp + 0x20]
mov edx, 9
shl ecx, 4
mov dword [esp + 0x5c], ecx
push dword [ecx + eax]
mov ecx, edi
push 0
push dword [esi]
call fcn.1003e640
add esp, 0xc
mov dword [esp + 0x30], eax
cmp eax, 1
je 0x10048021
mov ecx, dword [esp + 0x54]
xor edx, edx
mov eax, dword [edi + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], edx
mov dword [ecx + 0x38], eax
inc dword [edi + 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x44]
test eax, eax
je 0x10047237
inc ecx
inc edx
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10047227
mov dword [esp + 0x60], edx
cmp dword [esp + 0x74], 0
je 0x1004725c
mov eax, dword [edi + 0x1ec]
mov dword [esp + 0x8c], eax
mov eax, dword [esi]
mov dword [esp + 0x88], edi
mov dword [edi + 0x1ec], eax
jmp 0x10047278
mov eax, dword [esp + 0x84]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x8c], eax
mov ecx, edi
call fcn.1005f210
mov esi, eax
test esi, esi
je 0x10048009
cmp byte [edi + 0x12], 0
jne 0x10047293
or dword [esi + 0x58], 0x10
mov eax, dword [edi + 0x198]
mov edx, edi
test eax, eax
mov ecx, ebx
cmovne edx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x48], edx
mov ecx, dword [edx + 0x14c]
test ecx, eax
jne 0x100472e6
mov eax, dword [edx]
bts ecx, ebx
mov dword [edx + 0x14c], ecx
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 0xc]
mov eax, dword [eax]
mov dword [edx + ebx*4 + 0x150], eax
cmp ebx, 1
jne 0x100472e6
mov ecx, edx
call fcn.10045430
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x148]
or byte [edx + 0x14], 1
bts eax, ebx
cmp dword [esp + 0x74], 0
mov dword [edx + 0x148], eax
je 0x10047325
push dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ecx, edi
push dword [ebp + 8]
call fcn.10046f20
mov ecx, dword [esp + 0x34]
add esp, 8
mov eax, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x5c], eax
jmp 0x10047329
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x90]
xorps xmm0, xmm0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], eax
call fcn.10033000
test eax, eax
jne 0x10048009
mov eax, dword [esp + 0x34]
test byte [eax + 0x18], 0x80
je 0x100473da
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x100473a6
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x100473da
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x30], 0
jne 0x10047547
cmp dword [ebp + 8], 0
jne 0x10047547
cmp dword [esp + 0x40], 0
jne 0x10047547
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x2c], 0x10
jne 0x10047547
mov eax, dword [edi]
test dword [eax + 0x18], 0x80000
je 0x10047449
mov eax, ecx
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [eax + 0x44]
mov edx, dword [eax]
add ecx, 0x38
call fcn.10008750
add esp, 4
test eax, eax
je 0x1004743b
cmp dword [eax + 8], 0
jne 0x10047547
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x10], 0
jne 0x10047547
mov eax, dword [ecx]
mov edx, ebx
push eax
push 1
push dword [ecx + 0x20]
mov ecx, edi
call fcn.1003e6e0
mov eax, dword [esp + 0x2c]
add esp, 0xc
test byte [eax + 0x2c], 0x20
jne 0x100474db
mov ecx, dword [eax]
mov eax, dword [eax + 0x20]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], ecx
cmp dword [eax + 0x54], edi
jg 0x10047495
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x10047495
mov edi, 1
jmp 0x100474c5
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffe
push dword [esp + 0x44]
mov edx, edi
mov ecx, esi
call fcn.100219a0
mov eax, dword [esp + 0x28]
add esp, 8
mov edi, dword [eax + 8]
test edi, edi
je 0x10047f56
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004750b
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x1004753b
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x100474e6
jmp 0x10047f56
mov ebx, dword [esp + 0x20]
test byte [ebx + 0x2c], 0x20
jne 0x100475b7
inc dword [edi + 0x48]
xor ebx, ebx
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004758b
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x100476de
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], bl
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
jmp 0x100476de
mov ebx, dword [ebx + 8]
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x100475d6
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x100475d2
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x100475c2
mov dword [esp + 0x30], ebx
movzx ecx, word [ebx + 0x32]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x38], ecx
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x44], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x64], edx
mov dword [esp + 0x4c], ecx
cmp dword [eax + 0x54], ecx
jg 0x10047623
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x1004761f
mov dword [esp + 0x4c], 1
jmp 0x1004765e
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], edx
movsx edx, bx
mov ebx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x39
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 8]
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.10045eb0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
cmp dword [edx + 4], 0
mov ecx, dword [edx]
je 0x100476d0
cmp byte [ecx + 0x40], 0
jne 0x100476d0
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 4]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea eax, [edx + eax*4]
movsx edx, byte [eax + 1]
mov dword [esp + 0x1c], eax
call fcn.100217a0
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x100476bd
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x100476de
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
jmp 0x100476de
push eax
mov edx, 0xfffffffa
call fcn.100217a0
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x54]
inc eax
push eax
push 0xc
push 0
push 0
push dword [ebp + 8]
call fcn.100756d0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x10048009
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 0x40]
mov al, byte [eax + 0x26]
mov byte [esp + 0x13], al
mov byte [esp + 0x80], al
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
test byte [eax + 0x18], 0x80
je 0x1004777f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x18], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004774b
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x1004777f
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
je 0x100477d9
mov edx, dword [esp + 0x38]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
cmp ax, dx
jge 0x100477cf
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
mov edx, edi
add eax, ecx
push eax
mov eax, dword [ebx + 4]
movsx eax, word [eax + ecx*2]
mov ecx, esi
push eax
push dword [esp + 0x34]
call fcn.10036ff0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x38]
inc ecx
movsx eax, dx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x10047798
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
jmp 0x10047800
mov eax, dword [edi + 0x48]
mov ecx, edi
mov edx, dword [esp + 0x20]
inc eax
push 0
push eax
push dword [esp + 0x34]
push 0xffffffffffffffff
call fcn.10037140
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp eax, dword [edi + 0x48]
jle 0x10047800
mov dword [edi + 0x48], eax
cmp byte [esp + 0x13], 0
je 0x1004791b
mov eax, dword [esp + 0x38]
movzx ecx, ax
mov eax, dword [esp + 0x60]
add eax, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
cdq
push edx
push eax
call fcn.100049f0
mov ecx, eax
add esp, 8
mov dword [esp + 0x58], ecx
test ecx, ecx
jne 0x10047844
mov ecx, dword [esp + 0x14]
call fcn.10076170
jmp 0x10048009
mov eax, dword [esp + 0x60]
inc eax
push eax
push 1
push ecx
call fcn.100a9260
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x7c]
test eax, eax
js 0x10047874
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x24]
test eax, eax
js 0x10047882
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100478cc
cmp eax, dword [esi + 0x20]
jge 0x100478cc
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea edi, [eax + ecx*4]
mov ecx, dword [esi]
call fcn.100217a0
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9a
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x3c]
dec eax
cmp dword [esp + 0x4c], eax
jne 0x100478cc
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x68], edx
cmp dword [eax + 0x54], edx
jg 0x100478f7
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x100478f3
mov dword [esp + 0x68], 1
jmp 0x10047a58
mov edx, dword [esp + 0x68]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
jmp 0x10047a43
test ebx, ebx
je 0x100479fe
inc dword [edi + 0x48]
mov edx, ebx
mov eax, dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call fcn.1004ea50
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x7c], eax
mov eax, edx
mov dword [esp + 0x24], edx
cmp dword [ecx + 0x54], edx
jg 0x10047971
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x1004796a
mov eax, dword [esp + 0x38]
mov edx, 1
cwde
jmp 0x100479b5
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x64]
lea ecx, [edx + edx*4]
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x38]
movsx ebx, bx
mov dword [esp + 0x24], ebx
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
push eax
push dword [esp + 0x80]
mov ecx, esi
call fcn.100219a0
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x54], ecx
jg 0x100479e9
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047a58
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x6e
jmp 0x10047a37
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x54], ecx
jg 0x10047a24
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047a58
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov byte [eax + ecx*4 + 3], 0
mov ecx, dword [esp + 0x14]
call fcn.10076170
cmp byte [esp + 0x13], 0
je 0x10047af0
mov ecx, esi
call fcn.10021480
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x70], eax
mov eax, edx
mov dword [esp + 0x24], edx
cmp dword [ecx + 0x54], edx
jg 0x10047a9a
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047acf
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x24]
inc eax
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x70]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x68]
cmp edx, eax
jbe 0x10047ae7
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x74], 0
jne 0x10047b21
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x7c]
mov ecx, edi
push eax
push dword [esp + 0x60]
push dword [esp + 0x38]
push 0x37
call fcn.100526d0
mov eax, dword [esp + 0x70]
add esp, 0x14
mov dword [esp + 0x48], eax
cmp byte [esp + 0x13], 0
je 0x10047b65
mov edx, dword [esp + 0x78]
mov eax, edx
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x18]
cmp byte [eax + ecx], 0
je 0x10047c46
movsx eax, bx
mov ecx, esi
push eax
push dword [esp + 0x20]
push dword [esp + 0x78]
push edx
mov edx, 0x44
call fcn.100213c0
add esp, 0x10
jmp 0x10047c46
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x54]
test ebx, ebx
je 0x10047c23
mov ecx, edx
cmp eax, edx
jg 0x10047b9c
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x10047b95
mov dword [esp + 0x28], 1
jmp 0x10047bd3
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x10047be9
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047c42
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x65
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x10047c4a
mov dword [esp + 0x28], edx
cmp eax, edx
jg 0x10047c9f
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x10047c9b
mov dword [esp + 0x28], 1
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x2c], 0x10
je 0x10047d4a
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x10047c6e
mov eax, dword [esp + 0x34]
cmp dword [ebx], eax
je 0x10047c6e
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x10047c63
mov edx, ecx
mov ecx, edi
call fcn.1006cb20
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x24], edx
cmp dword [eax + 0x54], edx
jg 0x10047ce0
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x10047cdc
mov edx, 1
jmp 0x10047d18
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x81
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x10047c4a
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x3c]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff6
push ebx
mov ecx, esi
call fcn.100219a0
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x10047d37
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
mov eax, dword [edi + 0x198]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x10047d7b
push dword [esp + 0x80]
cmp byte [edi + 0x12], 0
push 0xa
sete al
movzx eax, al
push eax
push ebx
push edx
push dword [esp + 0x5c]
mov edx, ecx
mov ecx, edi
push dword [esp + 0x90]
push dword [esp + 0x5c]
call fcn.100480a0
add esp, 0x20
cmp byte [esp + 0x13], 0
mov ecx, dword [esi + 0x18]
je 0x10047da8
mov ebx, dword [esp + 0x70]
not ebx
test ebx, ebx
js 0x10047d9c
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x10047d9c
mov eax, dword [esi + 0x20]
mov dword [edx + ebx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
jmp 0x10047e71
cmp dword [esp + 0x30], 0
mov ebx, dword [esi + 0x20]
mov eax, dword [ecx + 0x54]
mov ecx, ebx
je 0x10047e07
cmp eax, ebx
jg 0x10047dcd
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047e50
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 9
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [ecx + 8], eax
jmp 0x10047e50
cmp eax, ebx
jg 0x10047e19
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047e50
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x20]
cmp edx, eax
jbe 0x10047e68
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x74], 0
jne 0x10047f5a
mov ebx, dword [esp + 0x20]
test byte [ebx + 0x2c], 0x10
jne 0x10047f5a
cmp dword [esp + 0x30], 0
jne 0x10047ee9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x80], ecx
cmp dword [eax + 0x54], ecx
jg 0x10047eb5
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047ee9
mov ecx, dword [esp + 0x80]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x78]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10047f5a
mov edi, dword [esp + 0x48]
nop dword [eax + eax]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x10047f16
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047f46
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
inc edi
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x10047f00
mov edi, dword [esp + 0x3c]
cmp byte [edi + 0x12], 0
jne 0x10047f70
cmp dword [edi + 0x19c], 0
jne 0x10047f70
mov ecx, edi
call fcn.1004f090
mov eax, dword [esp + 0x34]
test byte [eax + 0x18], 0x80
je 0x10048009
cmp byte [edi + 0x12], 0
jne 0x10048009
cmp dword [edi + 0x19c], 0
jne 0x10048009
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x10047fab
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10047fdf
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, esi
call fcn.10022a10
mov eax, dword [esi]
cmp byte [eax + 0x40], 0
jne 0x10048009
mov ecx, dword [esi + 0x10]
mov edx, 0x100d8930
push 0
push 1
push 0xffffffffffffffff
call fcn.10020860
add esp, 0xc
mov eax, dword [esp + 0x88]
test eax, eax
je 0x10048021
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x1ec], ecx
mov edi, dword [esp + 0x34]
mov ecx, edi
mov edx, dword [esp + 0x54]
call fcn.10044d90
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.10034090
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x10048093
test edi, edi
je 0x1004808a
cmp dword [edi + 0x208], 0
je 0x1004805f
mov edx, ecx
mov ecx, edi
call fcn.10004740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edi + 0x114]
jb 0x1004808a
cmp ecx, dword [edi + 0x118]
jae 0x1004808a
mov eax, dword [edi + 0x110]
mov dword [ecx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.100046a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret