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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
mov ebx, ecx
mov dword [esp + 0x40], 0
xor eax, eax
mov dword [esp + 0x28], ebx
push esi
mov esi, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], eax
mov al, byte [ebx + 0x17]
mov byte [esp + 0xf], al
mov eax, dword [esi + 0xc]
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], eax
call fcn.1004f360
test eax, eax
jne 0x10050331
mov edx, esi
mov ecx, ebx
call fcn.1004e230
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov cl, byte [eax]
cmp cl, 0xb0
jne 0x1004f47f
mov cl, byte [eax + 2]
cmp cl, 0xb1
jne 0x1004f48b
mov eax, dword [eax + 0x14]
mov edi, dword [eax]
jmp 0x1004f49f
cmp cl, 0x8a
jne 0x1004f49a
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax]
jmp 0x1004f49f
mov edi, 1
mov ecx, dword [ebx]
lea esi, [edi*4 + 1]
add esi, edi
mov dword [esp + 0x1c], edi
push 0
push esi
test ecx, ecx
je 0x1004f4c2
call fcn.1000f5d0
mov ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x1004f4cd
call fcn.1000ef10
mov ecx, eax
mov dword [esp + 0x2c], eax
add esp, 8
test ecx, ecx
je 0x1004f4e4
push esi
push 0
push ecx
call fcn.100dd0a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
jne 0x10050311
mov esi, dword [ebx + 8]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x50]
xor edx, edx
mov dword [esp + 0x4c], esi
cmp dword [ebp + 8], ecx
mov ecx, ebx
cmove eax, edx
mov edx, dword [esp + 0x44]
push eax
push 3
call fcn.1004d8f0
mov edx, dword [esp + 0x3c]
mov ecx, ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x60]
push eax
mov byte [ebx + 0x17], 0
call fcn.10050a70
mov cl, byte [esp + 0x27]
add esp, 0x14
mov edx, dword [esp + 0x24]
mov byte [ebx + 0x17], cl
xor ecx, ecx
mov dword [esp + 0x50], eax
test edi, edi
jle 0x1004f55a
nop word [eax + eax]
cmp dword [edx + ecx*4], ecx
jne 0x1004f55a
inc ecx
cmp ecx, edi
jl 0x1004f550
cmp ecx, edi
jne 0x1004f569
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x1004f63c
cmp edi, 1
jne 0x1004f59a
mov al, byte [ebx + 0x13]
test al, al
jne 0x1004f583
inc dword [ebx + 0x2c]
xor edi, edi
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x14], ecx
jmp 0x1004f5cf
dec al
xor edi, edi
mov byte [ebx + 0x13], al
movzx eax, al
mov ecx, dword [ebx + eax*4 + 0x98]
mov dword [esp + 0x14], ecx
jmp 0x1004f5cf
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
cmp edi, ecx
jg 0x1004f5b8
add eax, edi
sub ecx, edi
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x20], eax
jmp 0x1004f5c7
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
add eax, edi
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x2c], eax
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x1004f638
mov ebx, dword [esp + 0x50]
mov edx, dword [edx + edi*4]
add edx, ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004f5f5
push 0
push edx
push ebx
mov edx, 0x4f
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x1004f624
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
inc edi
mov edx, dword [esp + 0x24]
inc ebx
cmp edi, dword [esp + 0x1c]
jl 0x1004f5d3
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x34], 5
jne 0x1004fb84
dec dword [ebx + 0x38]
xor edi, edi
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, ebx
call fcn.1004a710
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1004f6e5
mov cl, byte [ebx + 0x13]
test cl, cl
jne 0x1004f687
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x1004f696
dec cl
movzx eax, cl
mov byte [ebx + 0x13], cl
mov edi, dword [ebx + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x78], ecx
jg 0x1004f6ba
mov eax, dword [esp + 0x14]
mov edx, 0x66
push edi
push eax
push eax
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x1004f6e5
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], 0
cmp dword [eax], 0
jle 0x1004fa8d
lea ecx, [eax + 8]
mov eax, 2
mov dword [esp + 0x34], ecx
mov edi, dword [ecx]
test edi, edi
je 0x1004f735
nop dword [eax]
mov eax, dword [edi + 4]
test eax, 0x41000
je 0x1004f730
test eax, 0x40000
je 0x1004f729
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 8]
jmp 0x1004f72c
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x1004f710
mov eax, 2
cmp byte [ebx + 0x17], 0
je 0x1004f793
test edi, edi
je 0x1004f793
cmp byte [edi], 0xb0
je 0x1004f793
mov edx, edi
mov word [esp + 0x68], ax
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], fcn.1004d290
mov dword [esp + 0x5c], 0x1004d160
mov dword [esp + 0x6c], 0
call fcn.100475f0
cmp word [esp + 0x68], 0
je 0x1004f793
push 0xffffffffffffffff
mov edx, edi
mov dword [esp + 0x2c], 0
mov ecx, ebx
call fcn.10052e30
add esp, 4
mov dword [esp + 0x18], eax
lea edi, [ebx + 0x13]
jmp 0x1004f7f6
mov cl, byte [ebx + 0x13]
lea eax, [ebx + 0x13]
mov dword [esp + 0x3c], eax
test cl, cl
jne 0x1004f7a9
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x1004f7b7
dec cl
mov byte [eax], cl
movzx eax, cl
mov eax, dword [ebx + eax*4 + 0x98]
push eax
mov edx, edi
mov dword [esp + 0x2c], eax
mov ecx, ebx
call fcn.10050f70
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp eax, ecx
je 0x1004f7f6
test ecx, ecx
je 0x1004f7ee
mov al, byte [edi]
cmp al, 8
jae 0x1004f7ee
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [edi]
mov dword [esp + 0x28], 0
cmp dword [esp + 0x1c], 0
mov edx, edi
je 0x1004f874
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], edi
mov ecx, dword [ecx]
call fcn.1004d580
test eax, eax
je 0x1004f870
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004f839
mov eax, dword [esp + 0x1c]
mov edx, 0x66
mov edi, dword [esp + 0x18]
mov ecx, esi
push eax
push edi
push eax
call fcn.10033da0
add esp, 0xc
lea edx, [ebx + 0x13]
jmp 0x1004f878
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0xc], edx
mov edx, edi
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1004f874
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1004f892
mov al, byte [edx]
cmp al, 8
jae 0x1004f892
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [edx]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
dec eax
cmp dword [esp + 0x38], eax
jl 0x1004f98c
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0xc], ecx
jne 0x1004f98c
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, edi
mov edi, dword [esi + 0x74]
setne dl
lea edx, [edx*2 + 0x32]
cmp dword [esi + 0x78], edi
jg 0x1004f8dd
push dword [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.10033da0
add esp, 0xc
mov edi, eax
jmp 0x1004f917
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x1004f932
push dword [esp + 0x20]
mov edx, 0xfffffffe
call fcn.10034850
add esp, 4
jmp 0x1004f96d
test edi, edi
jns 0x1004f93a
mov edi, dword [esi + 0x74]
dec edi
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x1004f95e
push 0xfffffffffffffffe
push dword [esp + 0x24]
mov edx, eax
mov ecx, esi
call fcn.10034ac0
add esp, 8
jmp 0x1004f96d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1004f96d
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
mov ecx, dword [esi + 0x74]
test ecx, ecx
jle 0x1004fa68
mov eax, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov al, byte [eax]
or al, 0x10
movsx dx, al
jmp 0x1004fa60
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, edi
mov edi, dword [esi + 0x74]
setne dl
lea edx, [edx*2 + 0x33]
cmp dword [esi + 0x78], edi
jg 0x1004f9bd
push dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x30]
push eax
call fcn.10033da0
add esp, 0xc
mov edi, eax
jmp 0x1004f9f8
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x1004fa13
push dword [esp + 0x20]
mov edx, 0xfffffffe
call fcn.10034850
add esp, 4
jmp 0x1004fa4e
test edi, edi
jns 0x1004fa1b
mov edi, dword [esi + 0x74]
dec edi
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x1004fa3f
push 0xfffffffffffffffe
push dword [esp + 0x24]
mov edx, eax
mov ecx, esi
call fcn.10034ac0
add esp, 8
jmp 0x1004fa4e
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1004fa4e
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x1004fa68
mov ecx, dword [esp + 0x40]
movsx dx, byte [ecx]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x34]
add ecx, 0x14
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
cmp eax, dword [edx]
mov eax, 2
jl 0x1004f706
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1004fb38
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004fab8
push 0
push dword [ebp + 0xc]
mov edx, 0x32
mov ecx, esi
push edi
call fcn.10033da0
add esp, 0xc
jmp 0x1004fae6
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004fb06
push 0
push dword [ebp + 8]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10033da0
add esp, 0xc
jmp 0x1004fb38
mov edx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1004fb56
push edx
mov edx, esi
call fcn.10034550
add esp, 4
jmp 0x1004fb5f
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
test edi, edi
je 0x100502ef
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x100502ef
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edi
inc byte [ebx + 0x13]
jmp 0x100502ef
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], edx
jne 0x1004fb92
mov dword [esp + 0x38], edx
jmp 0x1004fba0
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], 0
test edi, edi
jle 0x1004fc9f
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0
nop dword [eax]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
mov byte [esp + 0x13], al
cmp al, 0xb0
jne 0x1004fbd4
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x1004fbdf
mov edx, dword [ecx + 0x14]
mov eax, edx
jmp 0x1004fbe9
cmp al, 0x8a
jne 0x1004fc12
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
cmp dword [eax], 1
jle 0x1004fc12
cmp byte [esp + 0x13], 0x8a
je 0x1004fc05
cmp byte [ecx + 2], 0x8a
je 0x1004fc05
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + edx + 8]
jmp 0x1004fc16
mov eax, dword [edx + 0x1c]
mov edi, dword [esp + 0x28]
mov ecx, dword [eax + edi + 8]
jmp 0x1004fc16
mov edi, dword [esp + 0x28]
cmp dword [ebx + 0x24], 0
jne 0x10050311
call fcn.1004d580
test eax, eax
je 0x1004fc7c
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x20]
cmp dword [esi + 0x78], ecx
jg 0x1004fc4d
push 0
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.10033da0
add esp, 0xc
jmp 0x1004fc7c
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x44]
add edi, 0x14
inc dword [esp + 0x20]
inc edx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
cmp edx, edi
jl 0x1004fbc0
mov edx, dword [ebp + 8]
cmp dword [esp + 0x34], 1
jne 0x1004fd60
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004fccc
push dword [esp + 0x14]
mov ecx, esi
push edx
push dword [esp + 0x20]
mov edx, 0x20
call fcn.10033da0
add esp, 0xc
jmp 0x1004fcfe
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x3c], edx
cmp dword [esi + 0x78], edx
jg 0x1004fd28
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10033da0
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x1004fe72
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1004fe72
push edi
push dword [esp + 0x44]
mov edx, 0x5f
mov ecx, esi
push 0
push edi
push dword [esp + 0x24]
call fcn.100340d0
mov ecx, dword [ebp + 8]
add esp, 0x14
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
mov dword [esp + 0x3c], edx
cmp ecx, dword [ebp + 0xc]
jne 0x1004fdff
cmp eax, edx
jg 0x1004fdad
push dword [esp + 0x14]
mov edx, 0x1e
push ecx
push dword [esp + 0x20]
mov ecx, esi
call fcn.10033da0
add esp, 0xc
mov edx, eax
jmp 0x1004fddf
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x1e
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x100502ef
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
jmp 0x100502ef
cmp eax, edx
jg 0x1004fe24
push dword [esp + 0x14]
mov edx, 0x1f
mov ecx, esi
push 0
push dword [esp + 0x20]
call fcn.10033da0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x3c], edx
jmp 0x1004fe5b
mov ebx, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x1004fe72
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x48]
test edx, edx
je 0x1004fece
cmp edi, 1
jne 0x1004fece
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004fe9c
push 0
push dword [ebp + 8]
mov ecx, esi
push edx
lea edx, [edi + 0x32]
call fcn.10033da0
add esp, 0xc
jmp 0x1004fece
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jne 0x1004ff26
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004fef4
push 0
push eax
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x1004ff26
mov edx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 [esp + 0x4c]
test edx, edx
je 0x1004ff51
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1004ff48
push edx
mov edx, esi
call fcn.10034550
add esp, 4
jmp 0x1004ff51
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x4c], ecx
cmp dword [esi + 0x78], ecx
jg 0x1004ff7e
push 0
push dword [ebp + 8]
mov edx, 0x26
mov ecx, esi
push dword [esp + 0x20]
call fcn.10033da0
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x1004ffb0
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [esp + 0x20], 0
cmp edi, 1
jle 0x1004ffc9
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
jmp 0x1004ffd5
mov dword [esp + 0x38], edx
test edi, edi
jle 0x1005019d
mov dword [esp + 0x34], 0
nop dword [eax]
mov al, byte [ebx + 0x13]
test al, al
jne 0x1004ffef
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x1004fffe
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov edi, dword [ebx + eax*4 + 0x98]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dl, byte [ecx]
mov al, dl
cmp al, 0xb0
jne 0x10050011
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x1005001c
mov ecx, dword [ecx + 0x14]
mov eax, ecx
jmp 0x10050026
cmp al, 0x8a
jne 0x10050055
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 1
jle 0x10050051
cmp dl, 0x8a
je 0x10050044
mov eax, dword [esp + 0x2c]
cmp byte [eax + 2], 0x8a
je 0x10050044
mov edx, dword [esp + 0x34]
mov edx, dword [edx + ecx + 8]
jmp 0x10050057
mov eax, dword [ecx + 0x1c]
mov edx, dword [esp + 0x34]
mov edx, dword [eax + edx + 8]
jmp 0x10050057
mov ecx, dword [esp + 0x2c]
mov edx, ecx
mov ecx, ebx
call fcn.1004a710
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x44], eax
cmp dword [esi + 0x78], ecx
jg 0x10050085
mov edx, dword [esp + 0x20]
mov ecx, esi
push edi
push edx
push dword [esp + 0x20]
mov edx, 0x5d
call fcn.10033da0
add esp, 0xc
jmp 0x100500b4
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x74]
add edi, dword [esp + 0x20]
cmp dword [esi + 0x78], edx
jg 0x100500e4
push dword [esp + 0x28]
mov edx, 0x34
mov ecx, esi
push dword [esp + 0x3c]
push edi
call fcn.10033da0
mov edi, dword [esp + 0x34]
add esp, 0xc
mov edx, eax
jmp 0x10050117
mov ebx, dword [esp + 0x30]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x10050133
mov edx, dword [esp + 0x44]
push edx
mov edx, 0xfffffffe
call fcn.10034850
add esp, 4
jmp 0x1005016b
test edx, edx
jns 0x1005013b
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x44]
je 0x10050160
push 0xfffffffffffffffe
push edx
mov edx, eax
mov ecx, esi
call fcn.10034ac0
add esp, 8
jmp 0x1005016b
test edx, edx
je 0x1005016b
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfe
test edi, edi
je 0x10050183
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10050183
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edi
inc byte [ebx + 0x13]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x34], 0x14
inc ecx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
cmp ecx, edi
jl 0x1004ffe0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100501bd
push 0
push dword [ebp + 0xc]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10033da0
add esp, 0xc
jmp 0x100501ef
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 edi, 1
jle 0x100502c5
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10050216
push edx
mov edx, esi
call fcn.10034550
add esp, 4
jmp 0x1005021f
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x10050244
push 0
push edx
push dword [esp + 0x20]
mov edx, 5
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x10050273
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10050293
push 0
push dword [ebp + 8]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10033da0
add esp, 0xc
jmp 0x100502c5
mov edx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x100502d7
mov eax, 0x101257b4
jmp 0x100502ec
mov ecx, dword [esp + 0x3c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x50]
je 0x10050311
test ecx, ecx
je 0x10050311
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10050311
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [ebx + 0x13]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x10050320
mov ecx, dword [ebx]
call fcn.1000f1f0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10050331
mov ecx, dword [ebx]
mov edx, eax
call fcn.1000f1f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret