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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x60]
xor eax, eax
push ebp
push esi
push edi
mov ebp, dword [ebx]
push ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x17], al
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x38], ebp
call fcn.0045d470
mov edi, dword [esp + 0x74]
mov esi, eax
add esp, 4
test byte [edi + 0x2a], 0x20
movsx eax, word [edi + 0x22]
mov dword [esp + 0x48], eax
jne 0x45a86e
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], 1
jmp 0x45a8a0
mov ecx, dword [edi + 8]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x45a898
nop dword [eax]
mov eax, dword [ecx + 0x34]
and al, 3
cmp al, 2
je 0x45a890
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x45a880
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
movzx ecx, word [ecx + 0x2e]
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x45aa9f
mov eax, dword [esp + 0x80]
xor edx, edx
mov dword [esp + 0x24], edx
lea ebp, [eax + 1]
not eax
mov dword [esp + 0x44], eax
nop
lea ecx, [eax + ebp]
movsx eax, word [edi + 0x20]
cmp ecx, eax
je 0x45aa7f
mov ecx, dword [edi + 4]
mov al, byte [edx + ecx + 0x14]
movzx edi, al
test al, al
je 0x45aa7b
mov ah, byte [esp + 0x8c]
cmp ah, 0xa
jne 0x45a912
cmp al, ah
jne 0x45a912
mov ebx, 2
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0x198]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x70]
mov byte [ecx + 0x15], 1
mov ecx, dword [eax + 4]
jmp 0x45a945
cmp ah, 0xa
movzx ebx, ah
cmove ebx, edi
cmp ebx, 5
jne 0x45a92e
cmp dword [edx + ecx + 4], 0
jne 0x45a92e
mov ebx, 2
jmp case.0x45a93a.2
lea eax, [ebx - 1]
cmp eax, 3
ja case.default.0x45a93a
jmp dword [eax*4 + 0x45becc]
mov eax, dword [esp + 0x70]
push dword [edx + ecx]
push dword [eax]
push str._s._s
push dword [esp + 0x40]
call fcn.00461d50
mov ecx, dword [esi + 0x18]
add esp, 0x10
mov edi, dword [esi + 0x20]
mov dword [esp + 0x4c], eax
cmp dword [ecx + 0x54], edi
jg 0x45a980
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
je 0x45a980
mov edi, 1
jmp 0x45a9ac
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x17
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0x513
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
test edx, edx
je 0x45a9f4
cmp byte [ecx + 0x41], 0
jne 0x45a9f4
test edi, edi
jns 0x45a9c3
mov edi, dword [esi + 0x20]
dec edi
lea eax, [edi + edi*4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx eax, byte [edi + 1]
push eax
push ecx
call fcn.00433490
mov eax, dword [esp + 0x58]
add esp, 0xc
test eax, eax
jne 0x45a9eb
mov dword [edi + 0x10], eax
mov byte [edi + 1], al
jmp 0x45aa06
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xff
jmp 0x45aa06
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x45aa06
push eax
push ecx
call fcn.004514c0
add esp, 8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
test ecx, ecx
je 0x45aa7f
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
jmp 0x45aa7f
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x45aa44
push 1
push esi
call fcn.00436000
mov edx, dword [esp + 0x2c]
add esp, 8
test eax, eax
jne 0x45aa77
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov ebx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x4c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x44]
inc ebp
add eax, ebp
add edx, 0x18
cmp eax, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], edx
jl 0x45a8c0
mov ebp, dword [esp + 0x34]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x45ad0f
test dword [ebp + 0x18], 0x2000
jne 0x45ad0f
mov eax, dword [esp + 0x80]
inc eax
mov dword [ebx + 0x5c], eax
mov al, byte [esp + 0x8c]
cmp al, 0xa
je 0x45ab28
movzx eax, al
mov dword [esp + 0x30], eax
jmp 0x45ab30
push ebp
push 0x4d
push esi
call fcn.004754d0
mov ebx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [esp + 0x7c]
push ebp
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x34]
push dword [eax + ecx + 4]
push ebx
call fcn.00454980
mov edx, dword [esi + 0x20]
add esp, 0x18
cmp edx, edi
jbe 0x45ab16
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x58], ecx
jmp 0x45aa7b
mov dword [esp + 0x30], 2
cmp dword [edx], 0
mov dword [esp + 0x48], 0
jle 0x45ad0f
xor edi, edi
mov dword [esp + 0x28], edi
jmp 0x45ab54
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x58], ecx
mov ebp, dword [ecx + 0x6c]
lea eax, [ebp + 1]
mov dword [ecx + 0x6c], eax
lea eax, [ebp - 1]
test ebp, eax
jne 0x45ac4a
mov ebx, dword [ecx + 0x70]
lea eax, [ebp*8 + 4]
mov edi, dword [ecx]
push 0
push eax
push ebx
push edi
call fcn.00451780
add esp, 0x10
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x45ac2f
test ebx, ebx
je 0x45ac2f
test edi, edi
je 0x45abda
cmp dword [edi + 0x208], eax
je 0x45abb4
push ebx
push edi
call fcn.00438520
add esp, 8
jmp 0x45ac2f
cmp ebx, dword [edi + 0x114]
jb 0x45abda
cmp ebx, dword [edi + 0x118]
jae 0x45abda
mov eax, dword [edi + 0x110]
mov dword [ebx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ebx
jmp 0x45ac2f
cmp dword [section..data], 0
je 0x45ac25
mov eax, dword [0x50cf50]
test eax, eax
je 0x45abf6
push eax
call dword [0x50a054]
add esp, 4
push ebx
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push ebx
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x45ac2f
push eax
call dword [0x50a05c]
jmp 0x45ac2c
push ebx
call dword [0x50a028]
add esp, 4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 0x70], ecx
mov eax, ecx
jmp 0x45ac4d
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x45ac58
mov dword [eax + ebp*4], 0xffffffff
push 0x10
mov eax, ebp
not eax
push eax
mov eax, dword [edx + 4]
push dword [edi + eax]
push ebx
call fcn.004571f0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp ebx, 4
jne 0x45ad77
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x45ac9a
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x45acd4
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x90]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*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 edi, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
test ebp, ebp
js 0x45acec
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x45acec
mov eax, dword [esi + 0x20]
mov dword [ecx + ebp*4], eax
mov eax, dword [esi + 0x20]
add edi, 0x18
mov ebx, dword [esp + 0x48]
dec eax
mov dword [edx + 0x58], eax
inc ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], edi
cmp ebx, dword [edx]
jl 0x45ab50
cmp byte [esp + 0x88], 0
je 0x45b1de
cmp dword [esp + 0x18], 0
jne 0x45b1de
mov edi, dword [esi + 0x18]
mov ebp, dword [edi + 0x6c]
lea eax, [ebp + 1]
mov dword [edi + 0x6c], eax
lea eax, [ebp - 1]
test ebp, eax
jne 0x45adba
mov ecx, dword [edi + 0x70]
lea eax, [ebp*8 + 4]
mov edx, dword [edi]
push 0
push eax
push ecx
push edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x5c], edx
call fcn.00451780
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x45ad72
push dword [esp + 0x58]
push dword [esp + 0x50]
call fcn.004514c0
add esp, 8
mov dword [edi + 0x70], ebx
jmp 0x45adbd
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 4]
test eax, eax
jne 0x45ad8c
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
push 3
push 0
cmp ebx, 5
mov ecx, 2
push eax
cmove ebx, ecx
push ebx
push 0x113
push dword [esp + 0x80]
mov dword [esp + 0x48], ebx
call fcn.0045d500
add esp, 0x18
jmp 0x45acd8
mov ebx, dword [edi + 0x70]
test ebx, ebx
je 0x45adc8
mov dword [ebx + ebp*4], 0xffffffff
mov cl, byte [esp + 0x8c]
mov eax, ebp
not eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
movzx edi, byte [eax + 0x2b]
cmp cl, 0xa
je 0x45ade9
movzx edi, cl
jmp 0x45adf4
cmp edi, 0xa
mov edx, 2
cmove edi, edx
cmp dword [esp + 0x84], 0
je 0x45ae77
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
mov ecx, ebx
cmp dword [eax + 0x54], ebx
jg 0x45ae1d
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x45ae5a
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x84]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45ae6c
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x90
mov cl, byte [esp + 0x8c]
mov eax, dword [esp + 0x70]
cmp edi, 5
jne 0x45af0e
cmp cl, 5
je 0x45af0e
mov eax, dword [eax + 8]
test eax, eax
je 0x45af0e
mov cl, byte [eax + 0x32]
cmp cl, 4
je 0x45aeaa
cmp cl, 3
je 0x45aeaa
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x45ae94
jmp 0x45af0e
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
mov ecx, ebx
mov dword [esp + 0x3c], ebx
cmp dword [eax + 0x54], ebx
jg 0x45aed7
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
je 0x45aed4
mov dword [esp + 0x3c], 1
jmp 0x45af0e
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], 0x10
mov byte [eax + ecx*4 + 3], 0
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
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
mov ecx, ebx
cmp dword [eax + 0x54], ebx
jg 0x45af2d
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x45af67
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x78]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x80]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edi - 1]
cmp eax, 4
ja case.default.0x45af73
jmp dword [eax*4 + 0x45bedc]
mov eax, dword [esp + 0x34]
xor edi, edi
mov ebx, dword [esp + 0x6c]
test dword [eax + 0x18], 0x40000
je 0x45afa4
push edi
push edi
push 0x6d
push dword [esp + 0x7c]
push ebx
call fcn.00470da0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x45afe1
mov ecx, dword [ebx]
test dword [ecx + 0x18], 0x80000
je 0x45b02d
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x64]
push edx
mov eax, dword [ecx + 0x40]
push dword [ecx]
add eax, 0x38
push eax
call fcn.0042fc70
add esp, 0xc
test eax, eax
je 0x45afd7
cmp dword [eax + 8], 0
jne 0x45afe1
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x10], 0
je 0x45b02d
mov eax, dword [ebx + 0x198]
mov ecx, ebx
push 1
push 5
push 0
push 1
push dword [esp + 0x90]
test eax, eax
push dword [esp + 0x90]
cmovne ecx, eax
push dword [esp + 0x90]
push edi
push dword [esp + 0x90]
mov byte [ecx + 0x14], 1
push ebx
call fcn.0045c0f0
add esp, 0x28
mov dword [esp + 0x40], 1
jmp 0x45b136
mov edi, dword [esp + 0x70]
cmp dword [edi + 8], 0
je 0x45b062
mov eax, dword [ebx + 0x198]
mov ecx, ebx
push 0
push dword [esp + 0x80]
test eax, eax
push dword [esp + 0x80]
cmovne ecx, eax
push edi
push ebx
mov byte [ecx + 0x14], 1
call fcn.0045c4c0
add esp, 0x14
mov dword [esp + 0x40], 1
jmp 0x45b136
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x45b092
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x45b136
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x90]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*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
jmp 0x45b136
mov edi, 2
mov edx, dword [esp + 0x70]
movzx eax, word [edx + 0x20]
test ax, ax
js 0x45b106
cwde
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
push dword [eax + ecx*8]
mov eax, dword [esp + 0x70]
push dword [edx]
push str._s._s
push dword [eax]
call fcn.00461d50
add esp, 0x10
mov ecx, 0x613
jmp 0x45b120
push dword [edx]
mov eax, dword [esp + 0x70]
push str._s.rowid
push dword [eax]
call fcn.00461d50
add esp, 0xc
mov ecx, 0xa13
push 2
push 0xffffffffffffffff
push eax
push edi
push ecx
push dword [esp + 0x80]
call fcn.0045d500
add esp, 0x18
mov edx, dword [esi + 0x18]
test ebp, ebp
js 0x45b14a
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x45b14a
mov eax, dword [esi + 0x20]
mov dword [ecx + ebp*4], eax
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x3c]
dec eax
mov dword [edx + 0x58], eax
test ebx, ebx
je 0x45b1de
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x50], edi
cmp dword [eax + 0x54], edi
jg 0x45b18a
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
je 0x45b187
mov dword [esp + 0x50], 1
jmp 0x45b1c1
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*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], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
cmp edx, ebx
jbe 0x45b1d5
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*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
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], 0
mov edi, dword [ecx + 8]
mov dword [esp + 0x14], edi
test edi, edi
je 0x45be7d
mov edx, dword [esp + 0x74]
xor eax, eax
nop
cmp dword [edx + eax*4], 0
je 0x45be69
cmp byte [esp + 0x13], 0
jne 0x45b229
mov eax, dword [esp + 0x80]
inc eax
push eax
push ecx
push esi
call fcn.00470870
add esp, 0xc
mov byte [esp + 0x13], 1
mov ebp, dword [esi + 0x18]
mov ecx, dword [ebp + 0x6c]
mov ebx, dword [ebp + 0x70]
mov dword [esp + 0x28], ecx
lea eax, [ecx + 1]
mov dword [ebp + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x45b317
mov edi, dword [ebp]
lea eax, [ecx*8 + 4]
push 0
push eax
push ebx
push edi
call fcn.00451780
add esp, 0x10
mov dword [esp + 0x58], eax
test eax, eax
jne 0x45b308
test ebx, ebx
je 0x45b308
test edi, edi
je 0x45b2b3
cmp dword [edi + 0x208], eax
je 0x45b28d
push ebx
push edi
call fcn.00438520
add esp, 8
jmp 0x45b308
cmp ebx, dword [edi + 0x114]
jb 0x45b2b3
cmp ebx, dword [edi + 0x118]
jae 0x45b2b3
mov eax, dword [edi + 0x110]
mov dword [ebx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ebx
jmp 0x45b308
cmp dword [section..data], 0
je 0x45b2fe
mov eax, dword [0x50cf50]
test eax, eax
je 0x45b2cf
push eax
call dword [0x50a054]
add esp, 4
push ebx
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push ebx
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x45b308
push eax
call dword [0x50a05c]
jmp 0x45b305
push ebx
call dword [0x50a028]
add esp, 4
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x70], ebx
test ebx, ebx
je 0x45b322
mov dword [ebx + ecx*4], 0xffffffff
cmp dword [edi + 0x24], 0
mov eax, ecx
not eax
mov dword [esp + 0x2c], eax
je 0x45b42c
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x20]
mov eax, dword [ecx + eax*4]
mov ecx, ebp
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x54]
cmp eax, ebp
jg 0x45b3bf
test eax, eax
je 0x45b35e
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45b363
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebx]
call fcn.00451780
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45b3fe
mov eax, dword [ebx]
test eax, eax
je 0x45b39c
cmp edi, dword [eax + 0x114]
jb 0x45b39c
cmp edi, dword [eax + 0x118]
jae 0x45b39c
movzx ecx, word [eax + 0xf8]
jmp 0x45b3a8
push edi
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebx + 0x54], edx
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebp*4]
mov eax, dword [esi + 4]
add ecx, ebp
mov word [eax + ecx*4], 0x1c
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
jmp 0x45b402
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x80]
push 0x10
push dword [esp + 0x30]
inc eax
mov dword [ebx + 0x5c], eax
push dword [edi + 0x24]
push ebx
call fcn.00456e40
add esp, 0x10
mov dword [ebx + 0x5c], 0
jmp 0x45b430
mov ebx, dword [esp + 0x6c]
movzx ecx, word [edi + 0x30]
mov edx, dword [ebx + 0x38]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x24], ebp
cmp ecx, edx
jg 0x45b44f
lea eax, [ecx + ebp]
sub edx, ecx
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x38], edx
jmp 0x45b45e
mov eax, dword [ebx + 0x48]
lea ebp, [eax + 1]
add eax, ecx
mov dword [esp + 0x24], ebp
mov dword [ebx + 0x48], eax
mov edx, dword [esp + 0x14]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x30], edi
movzx eax, word [edx + 0x30]
mov ecx, eax
cmp bx, ax
jae 0x45b5a1
nop dword [eax]
mov eax, dword [edx + 4]
movsx ecx, word [eax + edi*2]
test ecx, ecx
js 0x45b4a7
mov eax, dword [esp + 0x70]
movsx eax, word [eax + 0x20]
cmp ecx, eax
je 0x45b4a7
mov eax, dword [esp + 0x80]
inc eax
add eax, ecx
mov dword [esp + 0x4c], eax
jmp 0x45b4ce
cmp dword [esp + 0x54], ebp
je 0x45b58f
mov eax, dword [esp + 0x80]
mov ecx, 0xffffffff
cmp dword [edx + 0x24], 0
mov dword [esp + 0x4c], eax
mov eax, ebp
cmovne eax, ecx
mov dword [esp + 0x54], eax
mov ebx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov ecx, edx
mov dword [esp + 0x58], edx
mov eax, dword [ebx + 0x54]
cmp eax, edx
jg 0x45b552
test eax, eax
je 0x45b4ed
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45b4f2
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebx]
call fcn.00451780
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45b587
mov eax, dword [ebx]
test eax, eax
je 0x45b52b
cmp edi, dword [eax + 0x114]
jb 0x45b52b
cmp edi, dword [eax + 0x118]
jae 0x45b52b
movzx ecx, word [eax + 0xf8]
jmp 0x45b537
push edi
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebx + 0x54], edx
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x58]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x4c]
mov word [eax + ecx*4], 0x22
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x45b58b
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
movzx ecx, word [edx + 0x30]
inc edi
inc ebp
mov dword [esp + 0x30], edi
cmp edi, ecx
jl 0x45b480
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x20]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x4c], eax
movzx eax, cx
mov ecx, ebp
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x54]
cmp eax, ebp
jg 0x45b62f
test eax, eax
je 0x45b5d2
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45b5d7
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebx]
call fcn.00451780
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45b66e
mov eax, dword [ebx]
test eax, eax
je 0x45b610
cmp edi, dword [eax + 0x114]
jb 0x45b610
cmp edi, dword [eax + 0x118]
jae 0x45b610
movzx ecx, word [eax + 0xf8]
jmp 0x45b61c
push edi
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebx + 0x54], edx
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], edi
mov edx, dword [esp + 0x58]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x24]
lea ecx, [ebp*4]
mov dword [esi + 0x20], eax
add ecx, ebp
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x4c]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x45b672
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x6c]
movzx eax, word [edi + 0x30]
push eax
push ebx
push ebp
call fcn.00454710
add esp, 0xc
cmp dword [esp + 0x84], 0
je 0x45b6c7
cmp dword [esp + 0x18], edi
jne 0x45b6c7
cmp byte [esp + 0x88], 0
jne 0x45b6c7
mov ebx, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
test ebx, ebx
js 0x45b6bb
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x45b6bb
mov eax, dword [esi + 0x20]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
jmp 0x45be5d
movzx edx, byte [edi + 0x32]
test edx, edx
jne 0x45b70d
movzx edi, word [edi + 0x30]
push edi
push ebx
push ebp
call fcn.00454710
add esp, 0xc
cmp edi, dword [ebp + 0x38]
jle 0x45b6e9
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], ebx
mov ebx, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
test ebx, ebx
js 0x45b701
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x45b701
mov eax, dword [esi + 0x20]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
jmp 0x45be59
mov al, byte [esp + 0x8c]
cmp al, 0xa
je 0x45b721
movzx eax, al
mov dword [esp + 0x4c], eax
jmp 0x45b730
cmp edx, 0xa
mov eax, 2
cmove edx, eax
mov dword [esp + 0x4c], edx
movzx eax, word [edi + 0x2e]
mov ebp, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x54]
cmp eax, edi
jg 0x45b7b2
test eax, eax
je 0x45b753
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45b758
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebp]
call fcn.00451780
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x45b844
mov eax, dword [ebp]
test eax, eax
je 0x45b793
cmp ebx, dword [eax + 0x114]
jb 0x45b793
cmp ebx, dword [eax + 0x118]
jae 0x45b793
movzx ecx, word [eax + 0xf8]
jmp 0x45b79f
push ebx
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebp + 0x54], edx
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], ebx
mov edx, dword [esp + 0x7c]
lea eax, [ecx + 1]
add edx, dword [esp + 0x20]
lea ecx, [edi + edi*4]
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x43
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
test ecx, ecx
je 0x45b830
cmp byte [edx + 0x41], 0
jne 0x45b830
test edi, edi
jns 0x45b804
mov edi, dword [esi + 0x20]
dec edi
lea eax, [edi + edi*4]
push dword [ecx + eax*4 + 0x10]
lea edi, [ecx + eax*4]
movsx eax, byte [edi + 1]
push eax
push edx
call fcn.00433490
mov eax, dword [esp + 0x64]
add esp, 0xc
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xf2
nop word [eax + eax]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x45b84f
mov edi, ebx
mov dword [esp + 0x1c], edi
jmp 0x45b885
mov ebx, dword [esp + 0x24]
mov edi, 1
jmp 0x45b7ed
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [edx + 0x38]
mov edi, dword [edx + 0x3c]
mov dword [esp + 0x1c], edi
cmp ebx, ecx
jg 0x45b872
lea eax, [edi + ebx]
sub ecx, ebx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x38], ecx
jmp 0x45b881
mov eax, dword [edx + 0x48]
lea edi, [eax + 1]
add eax, ebx
mov dword [esp + 0x1c], edi
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x84], 0
jne 0x45b89a
cmp dword [esp + 0x4c], 5
jne 0x45bd2a
mov ecx, dword [esp + 0x70]
test byte [ecx + 0x2a], 0x20
jne 0x45b9df
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x20]
mov ecx, ebp
mov eax, dword [ebx + 0x54]
cmp eax, ebp
jg 0x45b920
test eax, eax
je 0x45b8c3
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45b8c8
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebx]
call fcn.00451780
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45b963
mov eax, dword [ebx]
test eax, eax
je 0x45b901
cmp edi, dword [eax + 0x114]
jb 0x45b901
cmp edi, dword [eax + 0x118]
jae 0x45b901
movzx ecx, word [eax + 0xf8]
jmp 0x45b90d
push edi
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebx + 0x54], edx
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], edi
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x1c]
lea ecx, [ebp*4]
mov dword [esi + 0x20], eax
add ecx, ebp
mov eax, dword [esi + 4]
add edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 0x70
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
jmp 0x45b967
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x84]
test ebp, ebp
je 0x45bd2e
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x45b995
push 1
push esi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x45b9c4
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45bd2e
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x90
jmp 0x45bd2e
cmp ebp, eax
je 0x45bb15
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x30], ebx
cmp cx, word [eax + 0x2e]
jae 0x45bb15
nop dword [eax]
movzx edx, word [ebp + 0x30]
xor ecx, ecx
test edx, edx
je 0x45ba21
mov eax, dword [eax + 4]
movzx edi, word [eax + ebx*2]
mov eax, dword [ebp + 4]
cmp di, word [eax]
je 0x45ba44
inc ecx
add eax, 2
cmp ecx, edx
jl 0x45ba14
or eax, 0xffffffff
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x20]
mov ecx, ebp
cwde
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x54]
cmp eax, ebp
jg 0x45baa6
test eax, eax
je 0x45ba49
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45ba4e
movzx eax, cx
jmp 0x45ba24
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebx]
call fcn.00451780
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45baf0
mov eax, dword [ebx]
test eax, eax
je 0x45ba87
cmp edi, dword [eax + 0x114]
jb 0x45ba87
cmp edi, dword [eax + 0x118]
jae 0x45ba87
movzx ecx, word [eax + 0xf8]
jmp 0x45ba93
push edi
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebx + 0x54], edx
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], edi
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x1c]
lea ecx, [ebp*4]
mov dword [esi + 0x20], eax
add ecx, ebp
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x2f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x7c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], eax
lea eax, [edi + ebx]
mov dword [ecx + 0xc], eax
jmp 0x45baf8
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc ebx
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
movzx eax, word [eax + 0x2e]
cmp ebx, eax
mov eax, dword [esp + 0x18]
jl 0x45ba00
cmp dword [esp + 0x84], 0
je 0x45bd2a
movzx ecx, word [eax + 0x2e]
mov edx, edi
mov eax, dword [esi + 0x20]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, 0x4e
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x34]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x64], edx
mov dword [esp + 0x30], ebp
test ecx, ecx
je 0x45bd2a
nop dword [eax]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov al, byte [ecx + 0x3e]
mov bl, byte [ecx + 0x91]
mov byte [esp + 0x5c], al
mov ebp, dword [esp + 0x5c]
movzx eax, bl
push eax
push edi
push ebp
push ecx
call fcn.00458090
add esp, 0x10
mov edx, eax
mov dword [esp + 0x58], edx
test bl, bl
jne 0x45bbb7
test edx, edx
je 0x45bba4
cmp dword [edx + 0xc], 0
jne 0x45bbb7
push edi
push edx
push ebp
push dword [esp + 0x78]
call fcn.0045c670
add esp, 0x10
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov ebx, 0x4f
mov edx, dword [esp + 0x30]
mov ebp, dword [esi + 0x18]
mov eax, dword [ecx + 4]
movzx ecx, word [ecx + 0x2e]
dec ecx
cmp edx, ecx
movsx eax, word [eax + edx*2]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
cmove eax, ebx
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x44], eax
mov ecx, ebx
mov eax, dword [esp + 0x2c]
cmovne eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x54]
cmp eax, ebx
jg 0x45bc68
test eax, eax
je 0x45bc09
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x45bc0e
mov eax, 0x3fc
push 0
push eax
push dword [esi + 4]
push dword [ebp]
call fcn.00451780
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45bcf1
mov eax, dword [ebp]
test eax, eax
je 0x45bc49
cmp edi, dword [eax + 0x114]
jb 0x45bc49
cmp edi, dword [eax + 0x118]
jae 0x45bc49
movzx ecx, word [eax + 0xf8]
jmp 0x45bc55
push edi
call dword [0x50a030]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
shr edx, 4
mov dword [ebp + 0x54], edx
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], edi
mov ebp, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov byte [ecx], al
mov eax, dword [esp + 0x60]
inc eax
add eax, dword [esp + 0x84]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x64]
add eax, ebp
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
test edx, edx
je 0x45bd15
cmp byte [ecx + 0x41], 0
jne 0x45bd03
test ebx, ebx
jns 0x45bcc9
mov ebx, dword [esi + 0x20]
dec ebx
lea eax, [ebx + ebx*4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx eax, byte [edi + 1]
push eax
push ecx
call fcn.00433490
mov eax, dword [esp + 0x64]
add esp, 0xc
test eax, eax
jne 0x45bcfc
mov dword [edi + 0x10], eax
mov byte [edi + 1], al
jmp 0x45bd03
mov ebp, dword [esp + 0x30]
mov ebx, 1
jmp 0x45bcb2
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xfc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45bd15
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x90
mov eax, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x30], ebp
movzx eax, word [eax + 0x2e]
cmp ebp, eax
jl 0x45bb60
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x45bd7e
cmp edi, 3
jbe 0x45bd66
cmp edi, 4
jne 0x45bd7e
push 0
push dword [esp + 0x94]
push 0
push 0x10
push esi
call fcn.00475560
mov ebp, dword [esp + 0x80]
add esp, 0x14
mov edi, dword [esp + 0x14]
jmp 0x45bdf4
push dword [esp + 0x14]
mov ebp, dword [esp + 0x70]
push edi
push ebp
call fcn.00470e90
mov edi, dword [esp + 0x20]
add esp, 0xc
jmp 0x45bdf4
mov ebp, dword [esp + 0x6c]
xor edx, edx
mov ecx, ebp
mov eax, dword [ebp + 0x198]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x34]
mov byte [ecx + 0x14], 1
test dword [eax + 0x18], 0x40000
je 0x45bdb5
push edx
push edx
push 0x6d
push dword [esp + 0x7c]
push ebp
call fcn.00470da0
add esp, 0x14
mov edx, eax
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
sete cl
movzx ecx, cl
push ecx
push 5
push 0
push dword [esp + 0x44]
push ebx
push dword [esp + 0x90]
push dword [esp + 0x90]
push edx
push dword [esp + 0x90]
push ebp
call fcn.0045c0f0
add esp, 0x28
mov dword [esp + 0x40], 1
cmp dword [esp + 0x28], 0
mov edx, dword [esi + 0x18]
jl 0x45be13
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x45be13
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
mov dword [ecx + ebx*4], eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
movzx edi, word [edi + 0x30]
push edi
push dword [esp + 0x28]
push ebp
call fcn.00454710
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp edi, dword [ebp + 0x38]
jle 0x45be3b
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], eax
cmp ebx, eax
je 0x45be59
mov edi, dword [esp + 0x38]
push edi
push ebx
push ebp
call fcn.00454710
add esp, 0xc
cmp edi, dword [ebp + 0x38]
jle 0x45be59
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], ebx
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov edi, dword [edi + 0x14]
inc eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
test edi, edi
jne 0x45b200
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45beb7
push 0
inc eax
push eax
push 0
push 0x10
push esi
call fcn.00475560
mov edx, dword [esi + 0x20]
add esp, 0x14
mov eax, dword [esp + 0x50]
cmp edx, eax
jbe 0x45beae
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
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x58
ret