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

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x511a8c
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x511aac]
test eax, eax
mov esi, dword [esp + 0x270]
je 0x456ea0
push 0x5106d8
call fcn.00486240
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x456ea0
mov ecx, dword [0x511aa4]
push eax
mov eax, dword [0x511000]
push eax
push str.sql
push ecx
lea edx, [esp + 0x7c]
push str._s_s__lx__i
push edx
call fcn.004b5820
add esp, 0x18
jmp 0x456ede
mov eax, dword [esi + 0x5bc]
mov edx, dword [esi + 0x5a8]
push eax
lea ecx, [eax + 1]
push edx
mov dword [esi + 0x5bc], ecx
mov eax, dword [0x511000]
mov ecx, dword [0x511aa4]
push eax
push str.sql
push ecx
lea edx, [esp + 0x80]
push str._s_s_lx__lx__x
push edx
call fcn.004b5820
add esp, 0x1c
mov edx, dword [esp + 0x27c]
test edx, edx
mov ecx, dword [esp + 0x274]
je 0x456f34
mov eax, dword [ecx + 0x44]
test eax, eax
jne 0x456f02
xor edx, edx
mov dword [esp + 0x27c], edx
jmp 0x456f13
mov eax, edx
mov esi, dword [eax + 4]
mov esi, dword [esi]
mov byte [esi + 0x20], 4
mov eax, dword [eax]
test eax, eax
jne 0x456f04
cmp dword [ecx + 0x40], 0x2000
jb 0x456f25
mov edi, 1
mov dword [esp + 0x2c], edi
test edx, edx
je 0x456f34
mov dword [esp + 0x280], 0
mov eax, dword [ecx + 0x34]
mov esi, dword [ecx + 0x30]
add esi, dword [ecx + 0x2c]
add esi, eax
test edx, edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x3c], eax
je 0x456f57
test edi, edi
jne 0x456f57
mov ecx, dword [ecx + 0x40]
jmp 0x456f59
xor ecx, ecx
mov edx, dword [esp + 0x274]
push 0
push ecx
lea eax, [edx + 0x20]
mov dword [esp + 0x48], eax
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
or ecx, 0xffffffff
lea edi, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [esp + 0x54]
push eax
lea eax, [edx + 0x1c]
lea ecx, [esi + 2]
shl ecx, 6
push ecx
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [edx + 0x3c]
inc eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x34]
push eax
push 0x24
push ecx
lea eax, [edx*4 + 4]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ebp, [esi*4]
push ebp
lea edx, [esp + 0x88]
push edx
lea ebx, [esi*4 + 4]
push ebx
lea eax, [esp + 0x58]
push eax
push 0x334
lea ecx, [esp + 0x58]
push ecx
push 0x10
call fcn.00481940
add esp, 0x50
test eax, eax
jne 0x457009
mov edx, dword [esp + 0x38]
push edx
push 0x5106d8
call fcn.004862c0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret
mov eax, esi
imul eax, eax, 0x44
add eax, 4
push eax
call fcn.004b64f8
xor edx, edx
add esp, 4
cmp eax, edx
je 0x457045
mov dword [eax], esi
dec esi
cmp esi, edx
lea edi, [eax + 4]
jl 0x457041
lea eax, [edi + 0x30]
lea ecx, [esi + 1]
mov dword [eax - 4], edx
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 8], edx
add eax, 0x44
dec ecx
jne 0x457030
mov eax, edi
jmp 0x457047
xor eax, eax
cmp eax, edx
mov ecx, dword [esp + 0x274]
mov dword [esp + 0x48], eax
mov dword [ecx + 0xc], eax
jne 0x457082
mov edx, dword [esp + 0x38]
push edx
push 0x5106d8
call fcn.004862c0
mov eax, dword [esp + 0x18]
push eax
call fcn.00480080
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x274]
lea edx, [esp + 0x6c]
push edx
push eax
mov dword [esi + 0x14], ecx
call fcn.00489da6
mov edi, dword [esp + 0x18]
xor eax, eax
mov ecx, 0xcd
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x58]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x160], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x15c], ecx
mov eax, dword [esp + 0x4c]
push eax
call fcn.00484860
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x158], eax
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x120], 0xa
mov eax, dword [esp + 0x1c]
mov dword [eax + 0xc8], 3
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xe8], 8
mov edx, dword [esp + 0x1c]
mov eax, 1
mov dword [edx + 0x174], eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xf4], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov byte [edx + 0x100], al
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x284]
mov dword [eax + 0x324], ecx
mov ebx, dword [esp + 0x5c]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esi + 0x48], eax
mov dword [esp + 0x60], edx
nop
lea esp, [esp]
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x4573a9
mov edi, dword [eax + 4]
test edi, edi
mov dword [esp + 0x60], eax
je 0x4573a9
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
mov ebp, eax
mov al, byte [edi + 0x25]
test al, al
je 0x4571e2
cmp ebp, 2
je 0x4571e2
mov eax, dword [esp + 0x274]
mov dword [eax + 0x48], 1
jmp 0x4571a0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
test eax, eax
jne 0x4571a0
cmp ebp, 2
jne 0x4572c6
mov eax, dword [esp + 0x27c]
test eax, eax
jne 0x4572c6
mov eax, dword [esp + 0x284]
test eax, eax
jne 0x4572c6
mov eax, dword [edi + 0x38]
xor ebp, ebp
test eax, eax
mov dword [edi + 0x28], 0
jbe 0x457392
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + ebp*4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
test eax, eax
jne 0x4572b5
mov edx, dword [esi]
push 1
push eax
push ebx
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.004568c0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x457307
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
add dword [esp + 0x18], 4
mov edx, dword [esi]
mov ecx, esi
add ebx, 4
call dword [edx + 0x2c]
mov edx, dword [esp + 0x20]
add edx, eax
mov ax, word [esi + 0x34]
test al, 1
mov dword [esp + 0x20], edx
jne 0x45728d
inc dword [esp + 0x1c]
test al, 0x10
je 0x457295
inc dword [esp + 0x28]
push 0x3c
call fcn.00471d10
add esp, 4
test eax, eax
je 0x4572ad
push esi
mov ecx, eax
call fcn.00411240
jmp 0x4572af
xor eax, eax
mov ecx, dword [edi + 0x2c]
mov dword [ecx + ebp*4], eax
mov eax, dword [edi + 0x38]
inc ebp
cmp ebp, eax
jb 0x457228
jmp 0x457392
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
setne dl
push 1
lea eax, [esp + 0x50]
push edx
push ebx
push eax
push ebp
push edi
push ecx
call fcn.004568c0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x457338
mov edx, dword [esp + 0x270]
mov eax, dword [edx + 0x608]
test eax, eax
je 0x4571a0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x274]
push eax
call fcn.00457ec0
mov ecx, dword [esp + 0x40]
push ecx
push 0x5106d8
call fcn.004862c0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret
cmp ebp, 2
jne 0x457340
mov dword [edi + 0x28], esi
mov eax, dword [esi]
mov ecx, esi
add ebx, 4
call dword [eax + 0x2c]
mov edx, dword [esp + 0x20]
add edx, eax
mov ax, word [esi + 0x34]
test al, 1
mov dword [esp + 0x20], edx
jne 0x457360
inc dword [esp + 0x1c]
test al, 0x10
je 0x457368
inc dword [esp + 0x28]
cmp byte [edi + 0x20], 4
jne 0x457387
mov cl, byte [edi + 0x22]
test cl, cl
je 0x457387
mov edx, dword [esp + 0x34]
inc edx
or eax, 0x8000
mov dword [esp + 0x34], edx
mov word [esi + 0x34], ax
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
add dword [esp + 0x18], 4
dec dword [esp + 0x3c]
jne 0x4571a0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
jmp 0x4571a0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, dword [eax + 4]
mov ebx, dword [esp + 0x28]
sub esi, edi
sar esi, 2
test ebx, ebx
mov dword [esp + 0x40], esi
jne 0x45740d
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x45740d
mov ecx, dword [esp + 0x28c]
and ecx, 0x208
cmp ecx, 0x200
je 0x45740d
mov dword [eax + 0xb4], 6
mov edx, dword [esp + 0x10]
push 6
push edx
call fcn.0040f710
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
add esp, 8
add ecx, eax
jmp 0x457470
mov dword [eax + 0xb4], 9
mov edx, dword [esp + 0x10]
push 9
push edx
call fcn.0040f710
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x284]
add esp, 8
test eax, eax
je 0x457486
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 0xfc]
mov edi, dword [esp + 0x274]
cmp dword [edi + 0x3c], eax
ja 0x457464
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x100]
cmp dword [edi + 0x40], eax
jbe 0x457486
mov dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x20]
test ebx, ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x78], ebx
jne 0x45749c
test edx, edx
je 0x457498
inc edx
jmp 0x45749c
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x45746c
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x34]
jmp 0x457470
inc dword [esp + 0x1c]
lea eax, [edx + 7]
shr eax, 3
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
add eax, 7
shr eax, 3
add eax, edx
add ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
jne 0x4574c7
mov ecx, 1
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x50], esi
mov eax, dword [esp + 0x10]
lea esi, [ecx + 0xc]
and esi, 0xfffffff8
mov dword [eax + 0x54], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esi + esi*2]
push 0x10
push edx
mov dword [ecx + 0x58], esi
call fcn.0047fff0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x44]
add esp, 8
test ecx, ecx
je 0x45730b
add ecx, esi
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x48]
mov ecx, dword [esp + 0x274]
add edx, esi
mov dword [eax + 0x4c], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
test edx, edx
mov dword [eax], 0
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x44]
mov ebp, dword [ecx + 0x1c]
lea eax, [ecx + 0x1c]
lea eax, [esi + edx]
mov dword [esp + 0x54], esi
mov dword [esp + 0x1c], eax
je 0x457575
xor eax, eax
mov edi, ebp
mov ecx, 8
rep stosd dword es:[edi], eax
mov word [ebp], ax
mov word [ebp + 2], dx
mov ecx, edx
shr ecx, 2
or eax, 0xffffffff
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
add ebp, 0x20
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x274]
mov edx, dword [edi + 4]
xor ebx, ebx
test ecx, ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x40]
sete bl
test eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], edx
jbe 0x457715
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
xor eax, eax
mov ecx, 8
mov edi, ebp
rep stosd dword es:[edi], eax
mov ax, word [esi + 0x34]
test al, 1
jne 0x457636
test ah, ah
jns 0x4575fd
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4575fd
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
inc eax
mov word [ebp + 2], 1
mov word [ebp], 0
add ebp, 0x20
mov dword [esp + 0x1c], eax
mov ecx, 8
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
jmp 0x457612
mov ecx, ebx
and ecx, 7
mov dl, 1
shl dl, cl
mov eax, ebx
shr eax, 3
mov word [ebp + 0xa], ax
mov byte [ebp + 8], dl
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov edx, ebx
mov dword [esi + 4], ecx
shr edx, 3
add edx, eax
mov ecx, ebx
and ecx, 7
mov al, 1
shl al, cl
mov dword [esi + 8], edx
inc ebx
mov byte [esi + 0xc], al
jmp 0x457648
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x45767a
mov edx, dword [esp + 0x284]
mov edi, dword [esp + 0x48]
push edx
push eax
push esi
mov ecx, edi
call fcn.00409310
add edi, 0x44
mov dword [esp + 0x48], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov word [ebp + 2], di
mov al, byte [esi + 0x34]
add ecx, edi
test al, 0x10
mov dword [esp + 0x1c], ecx
je 0x4576a0
mov word [ebp], 4
jmp 0x4576e2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3c]
test eax, eax
jne 0x4576dc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
cmp eax, 0xfe
je 0x4576c7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x48]
cmp eax, 0xfd
jne 0x4576dc
cmp edi, 0xa
jb 0x4576dc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4576dc
mov word [ebp], 1
jmp 0x4576e2
mov word [ebp], 0
dec dword [esp + 0x3c]
jne 0x4576ee
add ebx, 7
and ebx, 0xfffffff8
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
inc eax
add esi, 4
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
jb 0x4575b0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x274]
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x48]
sub ecx, edx
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0x28], edx
mov dword [esi + 0x18], ebp
mov ecx, dword [edi + 0x54]
mov esi, dword [edi + 0x44]
mov edi, dword [edi + 0x4c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5111d4]
cmp eax, 0xffffffff
jne 0x45776d
mov eax, dword [esp + 0x10]
mov dword [eax + 0x94], 0xffffffff
jmp 0x457791
mov esi, dword [esp + 0x10]
cmp dword [esi + 0xb4], 6
jne 0x457786
mov ecx, dword [0x5111bc]
cmp eax, ecx
jb 0x457786
mov eax, ecx
xor edx, edx
div dword [esi + 0x54]
mov dword [esi + 0x94], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x94]
mov ecx, 1
cmp edx, ecx
jae 0x4577ae
mov dword [eax + 0x94], ecx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x27c]
test ebx, ebx
mov ecx, dword [esp + 0x274]
mov edi, dword [ecx + 0x20]
je 0x457959
mov dword [eax + 0x190], ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x10], edx
mov esi, 1
mov dword [eax + 0x5c], esi
mov eax, dword [esp + 0x2c]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x10]
setne dl
mov dword [eax + 0x70], edx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x84], edi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov dword [edi + 4], esi
mov eax, dword [ecx + 0x3c]
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov dword [edi], 0
mov dword [edi + 0x1c], 0
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x30]
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
movsx edx, byte [ecx + 0x22]
mov eax, dword [esp + 0x14]
mov byte [eax + 0x16], 0
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
mov ecx, esi
mov dword [esp + 0x54], edx
call fcn.00401820
mov edx, dword [esp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x14]
mov word [ecx + 0xc], ax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x15], al
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x15]
cmp al, 1
je 0x457888
cmp al, 0xf
je 0x457888
mov eax, 1
jmp 0x45788a
xor eax, eax
mov word [ecx + 0x10], ax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x457930
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x18], edx
mov eax, dword [esi]
mov ebp, dword [esp + 0x10]
mov ecx, esi
call dword [eax + 0x70]
push eax
push esi
call fcn.00471df0
mov esi, eax
add esp, 8
test esi, esi
je 0x4578da
mov edx, dword [esi]
and word [esi + 0x34], 0x9f1
xor eax, eax
mov ecx, esi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x2c], eax
call dword [edx + 0x34]
test esi, esi
mov dword [ebx + 0x14], esi
je 0x457307
mov eax, dword [esp + 0x54]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x457919
mov byte [eax], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 4]
mov eax, dword [esp + 0x14]
inc word [eax + 0xc]
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + 0x14]
lea edx, [ecx + 1]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], 1
jmp 0x45791c
mov dword [esi + 4], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov cx, word [edx + 0xc]
add eax, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
xor eax, eax
mov ax, word [ecx + 0xc]
add edx, eax
mov dword [edi], edx
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebx]
add ecx, 0x18
test ebx, ebx
mov dword [esp + 0x14], ecx
jne 0x457820
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x457b68
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x274]
mov ebx, dword [ecx + 0x38]
mov eax, dword [esp + 0x288]
sub esi, ebp
mov edx, 0
setne dl
sub edx, ebx
mov ebx, dword [esp + 0x40]
add edx, ebx
test eax, eax
mov dword [edi + 8], edx
je 0x4579cb
mov eax, dword [esp + 0x270]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x578]
cmp dword [edx + 0x94], eax
jbe 0x4579b9
mov dword [edx + 0x94], eax
mov edx, dword [esp + 0x270]
mov eax, dword [edx + 0x578]
mov dword [ecx + 0x24], eax
jmp 0x4579d2
mov dword [ecx + 0x24], 0xffffffff
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0xfc], 1
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov edx, dword [esp + 0x10]
mov eax, 1
mov dword [edx + 0x5c], eax
je 0x4579f8
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x70], eax
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.00471d40
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x457307
mov eax, dword [esp + 0x10]
mov dword [eax + 0x84], edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
and eax, 0xffff
test esi, esi
mov dword [edi + 0x14], ecx
mov dword [edi + 4], 1
mov dword [edi], eax
mov dword [edi + 0x18], 0x4f4f2c
je 0x457ac0
mov edx, dword [esp + 0x14]
mov byte [edx + 0x16], 0
mov eax, dword [esp + 0x14]
mov dword [eax + 4], ebp
mov ecx, dword [esp + 0x14]
push 0x3c
mov word [ecx + 0xc], si
call fcn.00471d10
mov esi, eax
add esp, 4
test esi, esi
je 0x457aa1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push 0
xor edx, edx
mov dx, word [ecx + 0xc]
push 0
push 0
push 0
mov ecx, esi
push edx
mov edx, dword [eax + 0x44]
push edx
call fcn.00401590
or byte [esi + 0x34], 0x80
mov dword [esi + 0x38], 1
mov dword [esi], 0x4c8100
jmp 0x457aa3
xor esi, esi
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov ecx, dword [esp + 0x14]
mov word [ecx + 0x10], 1
mov edx, dword [esp + 0x14]
mov byte [edx + 0x15], 2
add dword [esp + 0x14], 0x18
mov eax, dword [esp + 0x274]
mov ecx, dword [eax + 0x38]
cmp ecx, ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
lea edx, [edx + ecx*4]
mov dword [esp + 0x18], edx
jae 0x457b68
sub ebx, ecx
mov esi, ebx
mov eax, dword [esp + 0x14]
mov byte [eax + 0x16], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
call fcn.00401820
mov edx, dword [esp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x14]
mov word [ecx + 0xc], ax
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x15], al
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x15]
cmp al, 1
je 0x457b45
cmp al, 0xf
je 0x457b45
mov eax, 1
jmp 0x457b47
xor eax, eax
mov word [ecx + 0x10], ax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edx, 4
add ecx, 0x18
dec esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jne 0x457ae4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x270]
mov ecx, dword [edx + 0x608]
test ecx, ecx
jne 0x45730b
mov dword [eax + 0xc4], 1
mov eax, dword [esp + 0x10]
cmp dword [eax + 0xb4], 9
jne 0x457bb9
mov ecx, dword [esp + 0x28c]
mov edx, dword [esp + 0x274]
push ecx
push edx
push eax
call fcn.00457c30
add esp, 0xc
test eax, eax
jne 0x457307
mov eax, dword [esp + 0x10]
push eax
call fcn.00457be0
add esp, 4
test eax, eax
jne 0x457307
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret