Function at 0x10045740
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 + 0x18], 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.10045680
test eax, eax
jne 0x10046752
mov edx, esi
mov ecx, ebx
call fcn.10044960
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov cl, byte [eax]
cmp cl, 0xaf
jne 0x1004579f
mov cl, byte [eax + 2]
cmp cl, 0xb0
jne 0x100457ab
mov eax, dword [eax + 0x14]
mov edi, dword [eax]
jmp 0x100457bf
cmp cl, 0x89
jne 0x100457ba
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax]
jmp 0x100457bf
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 0x100457e2
call fcn.10005060
mov ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x100457ed
call fcn.100049e0
mov ecx, eax
mov dword [esp + 0x30], eax
add esp, 8
test ecx, ecx
je 0x10045804
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
jne 0x100465d0
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 + 0x58], esi
cmp dword [ebp + 8], ecx
mov ecx, ebx
cmove eax, edx
mov edx, dword [esp + 0x44]
push eax
push 3
call fcn.10044080
mov edx, dword [esp + 0x3c]
mov ecx, ebx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x54]
push eax
mov byte [ebx + 0x17], 0
call fcn.10046ed0
mov cl, byte [esp + 0x27]
add esp, 0x14
mov byte [ebx + 0x17], cl
xor ecx, ecx
mov dword [esp + 0x44], eax
test edi, edi
jle 0x1004587e
mov eax, dword [esp + 0x28]
nop word [eax + eax]
cmp dword [eax + ecx*4], ecx
jne 0x1004587a
inc ecx
cmp ecx, edi
jl 0x10045870
mov eax, dword [esp + 0x44]
cmp ecx, edi
jne 0x1004588d
mov edx, eax
mov dword [esp + 0x14], edx
jmp 0x1004595b
cmp edi, 1
jne 0x100458ba
mov al, byte [ebx + 0x13]
test al, al
jne 0x100458a5
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x100458e8
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
mov dword [esp + 0x14], eax
jmp 0x100458e8
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x14], edx
cmp edi, ecx
jg 0x100458d5
lea eax, [edx + edi]
sub ecx, edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], ecx
jmp 0x100458e4
mov eax, dword [ebx + 0x2c]
lea edx, [eax + 1]
add eax, edi
mov dword [esp + 0x14], edx
mov dword [ebx + 0x2c], eax
test edi, edi
jle 0x1004595b
mov ebx, dword [esp + 0x44]
xor edi, edi
nop
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + edi*4]
add edx, dword [esp + 0x14]
cmp dword [esi + 0x78], ecx
jg 0x10045918
push 0
push edx
push ebx
mov edx, 0x4e
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x10045947
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x4e
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
inc edi
inc ebx
cmp edi, dword [esp + 0x1c]
jl 0x100458f0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x30], 5
jne 0x10045e6f
dec dword [ebx + 0x38]
xor edi, edi
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, ebx
call fcn.10040870
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x10045a04
mov cl, byte [ebx + 0x13]
test cl, cl
jne 0x100459a6
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x100459b5
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 0x100459d9
mov eax, dword [esp + 0x14]
mov edx, 0x66
push edi
push eax
push eax
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x10045a04
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 + 0x34]
mov dword [esp + 0x3c], 0
cmp dword [eax], 0
jle 0x10045d78
lea ecx, [eax + 8]
mov eax, 2
mov dword [esp + 0x38], ecx
mov edi, dword [ecx]
test edi, edi
je 0x10045a55
nop dword [eax + eax]
mov eax, dword [edi + 4]
test eax, 0x41000
je 0x10045a50
test eax, 0x40000
je 0x10045a49
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 8]
jmp 0x10045a4c
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x10045a30
mov eax, 2
cmp byte [ebx + 0x17], 0
je 0x10045aaa
test edi, edi
je 0x10045aaa
cmp byte [edi], 0xaf
je 0x10045aaa
mov edx, edi
mov word [esp + 0x68], ax
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], fcn.10043a90
mov dword [esp + 0x5c], 0x10043940
mov dword [esp + 0x6c], 0
call fcn.1003d7d0
cmp word [esp + 0x68], 0
je 0x10045aaa
xor eax, eax
mov edx, edi
push 0xffffffffffffffff
mov ecx, ebx
call fcn.100485d0
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x10045afd
mov al, byte [ebx + 0x13]
test al, al
jne 0x10045ab9
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x10045ac8
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
push eax
mov edx, edi
mov dword [esp + 0x30], eax
mov ecx, ebx
call fcn.10047340
mov edi, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x10045aff
test edi, edi
je 0x10045afd
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10045afd
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edi
inc byte [ebx + 0x13]
xor edi, edi
cmp dword [esp + 0x1c], 0
je 0x10045b3a
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
call fcn.10043d50
test eax, eax
je 0x10045b3a
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10045ba7
mov eax, dword [esp + 0x1c]
mov edx, 0x66
push eax
push dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.10029250
add esp, 0xc
mov edx, dword [esp + 0x18]
test edi, edi
je 0x10045b56
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10045b56
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edi
inc byte [ebx + 0x13]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
dec eax
cmp dword [esp + 0x3c], eax
jl 0x10045c83
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x10045c83
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edi, dword [esi + 0x74]
cmp ecx, edx
setne al
lea eax, [eax*2 + 0x32]
mov dword [esp + 0x50], eax
cmp dword [esi + 0x78], edi
jg 0x10045be3
push edx
mov edx, dword [ebp + 8]
push edx
push ecx
mov edx, eax
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov edi, eax
jmp 0x10045c21
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x10045b3e
mov edx, dword [esp + 0x50]
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 eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x10045c64
test edi, edi
jns 0x10045c31
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 0x10045c55
push 0xfffffffffffffffe
push dword [esp + 0x28]
mov edx, eax
mov ecx, esi
call fcn.1002a2c0
add esp, 8
jmp 0x10045c64
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10045c64
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
mov ecx, dword [esi + 0x74]
test ecx, ecx
jle 0x10045d53
mov eax, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov al, byte [eax]
or al, 0x10
movsx dx, al
jmp 0x10045d4b
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edi, dword [esi + 0x74]
cmp ecx, edx
setne al
lea eax, [eax*2 + 0x33]
mov dword [esp + 0x50], eax
cmp dword [esi + 0x78], edi
jg 0x10045cb7
push edx
push dword [esp + 0x34]
mov edx, eax
push ecx
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov edi, eax
jmp 0x10045cf6
mov edx, dword [esp + 0x50]
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 + 0x30]
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 eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x10045d39
test edi, edi
jns 0x10045d06
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 0x10045d2a
push 0xfffffffffffffffe
push dword [esp + 0x28]
mov edx, eax
mov ecx, esi
call fcn.1002a2c0
add esp, 8
jmp 0x10045d39
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10045d39
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x10045d53
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 + 0x3c]
mov edx, dword [esp + 0x34]
inc eax
mov ecx, dword [esp + 0x38]
add ecx, 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
cmp eax, dword [edx]
mov eax, 2
jl 0x10045a25
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10045e23
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10045da3
push 0
push dword [ebp + 0xc]
mov edx, 0x32
mov ecx, esi
push edi
call fcn.10029250
add esp, 0xc
jmp 0x10045dd1
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 0x10045df1
push 0
push dword [ebp + 8]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10029250
add esp, 0xc
jmp 0x10045e23
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 + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10045e41
push edx
mov edx, esi
call fcn.10029c70
add esp, 4
jmp 0x10045e4a
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
test edi, edi
je 0x100465ae
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x100465ae
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edi
inc byte [ebx + 0x13]
jmp 0x100465ae
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
je 0x10045e81
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x4c], eax
cmp dword [ebx + 0x24], 0
mov dword [esp + 0x38], eax
jne 0x100465ae
mov dword [esp + 0x34], 0
test edi, edi
jle 0x10045f73
mov dword [esp + 0x24], edx
xor edi, edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
mov byte [esp + 0x13], al
cmp al, 0xaf
jne 0x10045eb9
mov al, byte [ecx + 2]
cmp al, 0xb0
jne 0x10045ec4
mov eax, dword [ecx + 0x14]
mov edx, eax
jmp 0x10045ece
cmp al, 0x89
jne 0x10045eed
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 0x1c]
cmp dword [edx], 1
jle 0x10045eed
cmp byte [esp + 0x13], 0x89
je 0x10045ee6
cmp byte [ecx + 2], 0x89
je 0x10045ee6
mov ecx, dword [edi + eax + 8]
jmp 0x10045eed
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + edi + 8]
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
jne 0x100465d0
call fcn.10043d50
test eax, eax
je 0x10045f55
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x24]
cmp dword [esi + 0x78], ecx
jg 0x10045f26
push 0
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.10029250
add esp, 0xc
jmp 0x10045f55
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 + 0x34]
add edi, 0x14
inc dword [esp + 0x24]
inc edx
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x1c]
jl 0x10045ea5
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x30], 1
jne 0x10046036
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10045fa2
push dword [esp + 0x14]
mov edx, 0x20
mov ecx, esi
push dword [ebp + 8]
push dword [esp + 0x20]
call fcn.10029250
add esp, 0xc
jmp 0x10045fd4
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 0x10045ffe
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x10046148
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 0x10046148
push edi
push dword [esp + 0x44]
mov edx, 0x5e
mov ecx, esi
push 0
push edi
push dword [esp + 0x24]
call fcn.100296d0
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 0x100460d5
cmp eax, edx
jg 0x10046083
push dword [esp + 0x14]
mov edx, 0x1e
push ecx
push dword [esp + 0x20]
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov edx, eax
jmp 0x100460b5
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 + 0x53], 0
jne 0x100465ae
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 0x100465ae
cmp eax, edx
jg 0x100460fa
push dword [esp + 0x14]
mov edx, 0x1f
mov ecx, esi
push 0
push dword [esp + 0x20]
call fcn.10029250
mov edx, eax
add esp, 0xc
mov dword [esp + 0x3c], edx
jmp 0x10046131
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 + 0x20]
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 + 0x53], 0
jne 0x10046148
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 0x100461a4
cmp edi, 1
jne 0x100461a4
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10046172
push 0
push dword [ebp + 8]
mov ecx, esi
push edx
lea edx, [edi + 0x32]
call fcn.10029250
add esp, 0xc
jmp 0x100461a4
mov ebx, dword [esp + 0x20]
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 0x100461fc
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100461ca
push 0
push eax
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x100461fc
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 0x10046227
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1004621e
push edx
mov edx, esi
call fcn.10029c70
add esp, 4
jmp 0x10046227
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x50], ecx
cmp dword [esi + 0x78], ecx
jg 0x10046254
push 0
push dword [ebp + 8]
mov edx, 0x26
mov ecx, esi
push dword [esp + 0x20]
call fcn.10029250
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x10046286
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
cmp edi, 1
jle 0x10046297
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
jmp 0x100462a3
mov dword [esp + 0x38], edx
test edi, edi
jle 0x1004645c
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0
mov al, byte [ebx + 0x13]
test al, al
jne 0x100462c2
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x100462d1
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 + 0x30], edi
mov dl, byte [ecx]
mov al, dl
cmp al, 0xaf
jne 0x100462e4
mov al, byte [ecx + 2]
cmp al, 0xb0
jne 0x100462ef
mov eax, dword [ecx + 0x14]
mov ecx, eax
jmp 0x100462f9
cmp al, 0x89
jne 0x10046328
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 0x1c]
cmp dword [ecx], 1
jle 0x10046324
cmp dl, 0x89
je 0x10046317
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 2], 0x89
je 0x10046317
mov edx, dword [esp + 0x34]
mov edx, dword [edx + eax + 8]
jmp 0x1004632a
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x34]
mov edx, dword [eax + edx + 8]
jmp 0x1004632a
mov ecx, dword [esp + 0x2c]
mov edx, ecx
mov ecx, ebx
call fcn.10040870
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x4c], eax
cmp dword [esi + 0x78], ecx
jg 0x10046358
mov edx, dword [esp + 0x24]
mov ecx, esi
push edi
push edx
push dword [esp + 0x20]
mov edx, 0x5c
call fcn.10029250
add esp, 0xc
jmp 0x10046387
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 + 0x24]
mov dword [eax + ecx*4], 0x5c
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 + 0x24]
mov edx, dword [esi + 0x74]
add edi, dword [esp + 0x14]
cmp dword [esi + 0x78], edx
jg 0x100463b7
push dword [esp + 0x30]
mov edx, 0x34
mov ecx, esi
push dword [esp + 0x3c]
push edi
call fcn.10029250
mov edi, dword [esp + 0x3c]
add esp, 0xc
mov edx, eax
jmp 0x100463ea
mov ebx, dword [esp + 0x20]
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 + 0x30]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x1004642a
test edx, edx
jns 0x100463fa
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 ecx, dword [esp + 0x4c]
je 0x1004641f
push 0xfffffffffffffffe
push ecx
mov edx, eax
mov ecx, esi
call fcn.1002a2c0
add esp, 8
jmp 0x1004642a
test ecx, ecx
je 0x1004642a
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
test edi, edi
je 0x10046442
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10046442
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edi
inc byte [ebx + 0x13]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x34], 0x14
inc ecx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
cmp ecx, edi
jl 0x100462b3
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1004647c
push 0
push dword [ebp + 0xc]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10029250
add esp, 0xc
jmp 0x100464ae
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 0x10046584
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x100464d5
push edx
mov edx, esi
call fcn.10029c70
add esp, 4
jmp 0x100464de
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x10046503
push 0
push edx
push dword [esp + 0x20]
mov edx, 5
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x10046532
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 0x10046552
push 0
push dword [ebp + 8]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.10029250
add esp, 0xc
jmp 0x10046584
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 + 0x53], 0
je 0x10046596
mov eax, 0x1011f1ec
jmp 0x100465ab
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 + 0x44]
je 0x100465d0
test ecx, ecx
je 0x100465d0
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x100465d0
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [ebx + 0x13]
mov esi, dword [esp + 0x28]
mov ecx, dword [ebx]
test esi, esi
je 0x10046687
test ecx, ecx
je 0x1004662f
cmp dword [ecx + 0x210], 0
je 0x100465f7
mov edx, esi
call fcn.10004c70
jmp 0x10046687
cmp esi, dword [ecx + 0x164]
jae 0x1004662f
cmp esi, dword [ecx + 0x15c]
jb 0x10046617
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x10046687
cmp esi, dword [ecx + 0x160]
jb 0x1004662f
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x10046687
cmp dword [0x1011d0f8], 0
je 0x1004667d
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x1004664b
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10046687
push eax
call dword [0x1011d150]
jmp 0x10046684
push esi
call dword [0x1011d11c]
add esp, 4
mov ecx, dword [ebx]
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x10046752
test ecx, ecx
je 0x100466f2
cmp dword [ecx + 0x210], 0
je 0x100466b0
mov edx, ebx
call fcn.10004c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [ecx + 0x164]
jae 0x100466f2
cmp ebx, dword [ecx + 0x15c]
jb 0x100466d5
mov eax, dword [ecx + 0x158]
mov dword [ebx], eax
mov dword [ecx + 0x158], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [ecx + 0x160]
jb 0x100466f2
mov eax, dword [ecx + 0x150]
mov dword [ebx], eax
mov dword [ecx + 0x150], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x1011d0f8], 0
je 0x10046748
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x1004670e
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10046752
push eax
call dword [0x1011d150]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x1011d11c]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret