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

Disassembly:
sub esp, 0x50
mov eax, dword [0x4e41dc]
mov ecx, dword [0x786d48]
mov edx, dword [0x6dc538]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
mov dword [esp + 0x58], ecx
xor edi, edi
lea ecx, [eax + edx]
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov esi, 0x517b9c
mov ebp, 0x1e
cmp byte [esi - 1], 1
jne 0x428ec0
xor edx, edx
push 1
mov dl, byte [esi]
push 1
mov ecx, dword [edx*4 + 0x7951a8]
xor edx, edx
mov dl, byte [esi - 3]
push ecx
mov ecx, dword [0x79853c]
shl edx, 5
add edx, eax
xor eax, eax
mov al, byte [esi - 4]
sub edx, ecx
push edx
mov edx, dword [0x798538]
shl eax, 5
sub eax, edx
lea ecx, [esp + 0x60]
push eax
push ecx
push ebx
call fcn.00430770
mov eax, dword [0x4e41dc]
add esp, 0x1c
add esi, 0xc
dec ebp
jne 0x428e73
mov al, byte [0x798628]
mov byte [esp + 0x28], 0
test al, al
jbe 0x429428
mov edx, dword [esp + 0x28]
push edx
call fcn.004a4660
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
mov esi, dword [ebx + 0x10]
cmp esi, edi
je 0x4291a5
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], edi
test eax, 0x100000
jne 0x42919a
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x34]
mov cl, byte [0x79553c]
mov ebp, eax
mov dword [esp + 0x38], edi
cmp ebp, ecx
jl 0x428f31
push str.Error_with_vehicle_data
push str.BlitVehicles
call fcn.0042b590
add esp, 8
mov edx, ebp
mov cl, byte [esi + 0x39]
shl edx, 5
add edx, ebp
mov byte [esp + 0x20], cl
lea ebp, [ebp + edx*2]
mov edx, dword [esi + 0x24]
shl ebp, 2
mov eax, dword [ebp + 0x6dc540]
shr eax, 1
cmp edx, eax
mov al, byte [ebp + 0x6dc59c]
setl byte [esp + 0x13]
cmp al, 0xe
je 0x428f66
cmp al, 0x10
jne 0x428f6d
mov dl, byte [esi + 0x20]
mov byte [esp + 0x20], dl
cmp al, 0xf
jne 0x428f83
push str.Building_type_is_concrete
push str.Display.cpp
call fcn.0042b590
add esp, 8
mov al, byte [ebp + 0x6dc59c]
mov ecx, dword [ebp + 0x6dc554]
cmp al, 5
jne 0x428fdf
mov edi, dword [ebx + 0x24258]
test edi, edi
je 0x428fda
mov eax, dword [ebx + 0x24254]
xor edx, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
shl eax, 2
div edi
mov edx, eax
mov eax, 0x57619f1
mul edx
mov eax, dword [ecx*4 + 0x6e5a60]
shr edx, 5
dec eax
cmp edx, eax
jge 0x428fd4
mov byte [esp + 0x20], dl
jmp 0x428fdf
mov byte [esp + 0x20], al
jmp 0x428fdf
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov dl, byte [ebp + 0x6dc59f]
shl ecx, 5
and eax, 0xff
mov byte [esp + 0x2c], dl
add ecx, eax
mov eax, dword [esi]
cdq
mov ecx, dword [ecx*4 + 0x6e5c40]
and edx, 0xffff
add eax, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
mov eax, dword [0x798538]
sar ecx, 0x10
sub ecx, eax
mov eax, dword [esi + 4]
cdq
and edx, 0xffff
mov ebx, dword [0x79853c]
add eax, edx
mov dword [esp + 0x14], ecx
mov edi, eax
mov eax, dword [0x4e41dc]
sar edi, 0x10
add edi, eax
mov eax, dword [ebp + 0x6dc558]
sub edi, ebx
cmp eax, 0xffffffff
je 0x429068
xor edx, edx
xor ebx, ebx
mov dl, byte [esi + 0x21]
shl eax, 5
mov bl, byte [edx + ebp + 0x6dc5a4]
add ebx, eax
mov eax, dword [ebx*4 + 0x6e5c40]
mov dword [esp + 0x1c], eax
jmp 0x429070
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x28]
and eax, 6
mov dword [esp + 0x44], eax
je 0x4290d7
xor edx, edx
mov eax, 0x55555556
mov dl, byte [esi + 0x3e]
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
xor edx, edx
mov dl, byte [ebp + 0x6dc5ca]
mov eax, edx
shl eax, 3
sub eax, edx
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
mov edx, dword [eax*4 + 0x782aa8]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x24], edx
je 0x4290c5
xor eax, eax
mov al, byte [ebp + 0x6dc5c9]
cmp ebx, eax
jge 0x4290d7
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov al, byte [esi + 0x28]
test al, 0x30
je 0x429148
test al, 0x40
je 0x429148
mov al, byte [esp + 0x13]
test al, al
jne 0x429148
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x429148
xor ecx, ecx
xor ebx, ebx
mov cl, byte [ebp + 0x6dc5cb]
mov eax, ecx
shl eax, 5
add eax, ecx
lea edx, [ecx + eax*2]
xor eax, eax
mov al, byte [esi + 0x3f]
mov bl, byte [edx*4 + 0x6dc5c5]
cdq
idiv ebx
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [edx + edx*2]
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x716b00]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x6dc598]
test eax, 0x800000
je 0x429144
mov dword [esp + 0x38], 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x6dc540]
mov eax, dword [esi + 0x24]
push esi
push 1
push edx
mov edx, dword [esp + 0x38]
push eax
mov al, byte [esi + 0x35]
push edx
mov edx, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x68]
push edx
push eax
lea edx, [esp + 0x50]
lea eax, [esp + 0x60]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x68]
push edx
push eax
push edi
push ecx
call fcn.0042aa90
mov ebx, dword [esp + 0x88]
add esp, 0x40
xor edi, edi
mov esi, dword [esi + 0x7c]
cmp esi, edi
jne 0x428ef6
mov esi, dword [ebx + 8]
cmp esi, edi
je 0x429410
test dword [esi + 8], 0x1000000
jne 0x429405
mov cl, byte [esi + 0x1e]
xor edx, edx
mov dl, byte [esi + 0x18]
xor eax, eax
mov al, byte [0x795538]
mov ebp, edx
cmp ebp, eax
mov byte [esp + 0x34], cl
jl 0x4291e8
push str.Error_with_vehicle_data
push str.BlitVehicles
call fcn.0042b590
add esp, 8
test dword [esi + 8], 0x200140
jne 0x429405
xor ecx, ecx
mov cl, byte [esi + 0x54]
shl ebp, 8
mov bl, byte [ecx + ebp + 0x77e28c]
cmp bl, 0x20
mov byte [esp + 0x3c], bl
jb 0x42921f
push str.Error_with_vehicle_data
push str.BlitVehicles
call fcn.0042b590
add esp, 8
cmp dword [esi + 0x20], 9
jl 0x42922f
mov bl, byte [esi + 0x20]
sub bl, 9
mov byte [esp + 0x3c], bl
mov edi, dword [ebp + 0x77e264]
cmp edi, 0x5a
jle 0x42924c
push str.BaseImage_is_out_of_range
push str.Display.cpp
call fcn.0042b590
add esp, 8
cmp byte [esp + 0x34], 0x23
jbe 0x429265
push str.Animation_frame_out_of_range
push str.Display.cpp
call fcn.0042b590
add esp, 8
cmp bl, 0x20
jbe 0x42927c
push str.Rotation_frame_out_of_range
push str.Display.cpp
call fcn.0042b590
add esp, 8
xor edx, edx
mov dl, byte [esi + 0x18]
mov eax, edx
shl eax, 8
cmp byte [eax + 0x77e27d], 1
jne 0x4292c3
mov cl, byte [esi + 0x1e]
test cl, cl
je 0x4292c3
mov eax, dword [0x6d6118]
and ecx, 0xff
and eax, 0xff
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov eax, dword [eax*4 + 0x6e2e20]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x429314
push ecx
push str.BaseImage_is_NULL_for_harvester_explosion__frame__d
jmp 0x429307
mov eax, edi
shl eax, 3
sub eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x34]
and eax, 0xff
add ecx, eax
mov eax, dword [esp + 0x3c]
shl ecx, 5
and eax, 0xff
add ecx, eax
mov eax, dword [ecx*4 + 0x71aca0]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x429314
imul edx, edx, 0x1c2
add edx, 0x7891b0
push edx
push str.BaseImage_is_NULL_for__s
push str.Display.cpp
call fcn.0042b590
add esp, 0xc
mov eax, dword [esi + 0x34]
mov cl, byte [ebp + 0x77e286]
cdq
and edx, 0xffff
mov byte [esp + 0x2c], cl
add eax, edx
mov edx, dword [0x798538]
mov ebx, eax
mov eax, dword [esi + 0x38]
sar ebx, 0x10
sub ebx, edx
mov ecx, dword [0x79853c]
cdq
and edx, 0xffff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x3c]
cdq
and edx, 0xffff
add eax, edx
mov edx, dword [0x4e41dc]
sar edi, 0x10
sar eax, 0x10
sub edi, eax
mov eax, dword [ebp + 0x77e268]
add edi, edx
sub edi, ecx
cmp eax, 0xffffffff
je 0x4293c2
xor edx, edx
mov dl, byte [esi + 0x55]
mov al, byte [edx + ebp + 0x77e28c]
cmp al, 0x20
mov byte [esp + 0x4c], al
jb 0x42939a
push str.Error_with_vehicle_data
push str.BlitVehicles
call fcn.0042b590
add esp, 8
mov ecx, dword [ebp + 0x77e268]
mov eax, ecx
shl eax, 3
sub eax, ecx
mov ecx, dword [esp + 0x4c]
and ecx, 0xff
lea eax, [eax + eax*4]
shl eax, 5
add eax, ecx
mov eax, dword [eax*4 + 0x71aca0]
jmp 0x4293c4
xor eax, eax
mov edx, dword [ebp + 0x77e254]
mov ecx, dword [esi + 4]
push esi
push 2
push edx
mov edx, dword [esp + 0x38]
push ecx
mov cl, byte [esi + 0x19]
push edx
mov edx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x68]
push edx
push ecx
lea edx, [esp + 0x50]
lea ecx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push 0
push eax
push edx
push 0
push edi
push ebx
call fcn.0042aa90
add esp, 0x40
xor edi, edi
mov esi, dword [esi + 0x7c]
cmp esi, edi
jne 0x4291b0
mov al, byte [esp + 0x28]
mov cl, byte [0x798628]
inc al
cmp al, cl
mov byte [esp + 0x28], al
jb 0x428ed8
mov ebp, dword [esp + 0x30]
cmp ebp, edi
mov dword [0x512d58], ebp
je 0x42a590
xor eax, eax
mov al, byte [ebp + 0x20]
mov cl, byte [eax + 0x5175d8]
mov eax, dword [0x4eb018]
cmp eax, 8
mov byte [esp + 0x20], cl
jne 0x42946c
mov edx, dword [esp + 0x20]
and edx, 0xff
shl edx, 8
add edx, 0x6d9350
mov dword [0x7984dc], edx
mov cl, byte [ebp + 8]
xor al, al
cmp cl, 1
jne 0x4294bd
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 0x34]
cmp al, 0x64
jb 0x42949a
and eax, 0xff
push 0x64
push eax
push str.Building_type_out_of_range__d____d
push str.DISPLAY.CPP
call fcn.0042b590
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx + 0x34]
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x6dc540]
mov eax, dword [ecx + 0x24]
shr edx, 1
cmp eax, edx
setl al
mov edx, dword [ebp + 0x10]
mov ebx, edx
test ebx, ebx
je 0x429c47
cmp byte [ebp + 8], 1
jne 0x42950a
test al, al
je 0x42950a
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x28], 6
jne 0x42950a
xor eax, eax
xor ebx, ebx
mov al, byte [ecx + 0x34]
mov bl, byte [ecx + 0x20]
mov esi, eax
shl esi, 5
add esi, eax
lea eax, [eax + esi*2]
mov eax, dword [eax*4 + 0x6dc554]
shl eax, 5
add eax, ebx
mov ebx, dword [eax*4 + 0x7907a8]
test ebx, ebx
jne 0x42950a
mov ebx, edx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x42953a
cmp byte [ebx + 0x18], 8
jne 0x42953a
mov esi, dword [esp + 0x20]
mov edi, dword [eax + 4]
and esi, 0xff
mov ecx, 8
shl esi, 5
add esi, 0x786c48
add edi, 0x1e0
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp + 8]
cmp al, 1
jne 0x4295a3
mov eax, dword [ebp]
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x14]
sub eax, esi
mov esi, dword [ebp + 4]
sub esi, edx
test ecx, ecx
je 0x42957f
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x34]
mov ecx, edx
shl edx, 5
add edx, ecx
lea ecx, [ecx + edx*2]
shl ecx, 2
movsx edx, byte [ecx + 0x6dc5a0]
movsx ecx, byte [ecx + 0x6dc5a1]
add eax, edx
add esi, ecx
mov edx, dword [ebp + 0xc]
push 1
test byte [edx + 0x38], 2
je 0x42958f
push ebx
push esi
push eax
jmp 0x4295c9
push 1
push ebx
push esi
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x64]
push edx
push eax
jmp 0x4297bd
cmp al, 2
jne 0x42979c
mov esi, dword [ebp + 0xc]
test byte [esi + 0x1d], 2
je 0x4295e0
mov ecx, dword [ebp + 4]
mov esi, dword [ebx + 0xc]
mov edx, dword [ebp]
mov eax, dword [ebx + 8]
push 1
sub ecx, esi
push ebx
sub edx, eax
push ecx
push edx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x60]
push eax
push ecx
call fcn.004326b0
add esp, 0x18
jmp 0x4297c5
mov ecx, dword [esi + 8]
and ecx, 4
jne 0x429615
mov al, byte [esi + 0x31]
test al, al
jne 0x429615
mov edx, dword [ebp + 4]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp]
mov edi, dword [ebx + 8]
push 1
push 1
sub edx, ecx
push ebx
sub eax, edi
push edx
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
jmp 0x4297bd
mov al, byte [ebp + 0x20]
mov dl, byte [0x798544]
cmp al, dl
jne 0x42966c
mov cx, word [esi + 0x8c]
mov esi, dword [0x5173f4]
mov eax, dword [ebp + 4]
mov edi, dword [ebx + 0xc]
add ecx, esi
sub eax, edi
and ecx, 0xf
mov edx, dword [ecx*4 + 0x786d50]
mov ecx, dword [ebp]
push edx
mov edx, dword [ebx + 8]
push ebx
sub ecx, edx
push eax
mov eax, dword [0x798384]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
call fcn.00432d80
add esp, 0x1c
jmp 0x42970a
mov al, byte [esi + 0x31]
test al, al
je 0x42970a
test ecx, ecx
je 0x4296c2
mov edi, dword [0x5173f4]
mov dl, 0xb
shr al, 1
sub dl, al
mov ax, word [esi + 0x8c]
add eax, edi
mov edi, dword [ebx + 0xc]
and eax, 0xf
push edx
mov edx, dword [ebp + 4]
mov ecx, dword [eax*4 + 0x786d50]
mov eax, dword [ebp]
push ecx
sub edx, edi
push ebx
push edx
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x60]
sub eax, edx
mov edx, dword [0x798384]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
jmp 0x429702
mov cx, word [esi + 0x8c]
mov esi, dword [0x5173f4]
mov edi, dword [ebx + 0xc]
add ecx, esi
and ecx, 0xf
shr al, 1
mov edx, dword [ecx*4 + 0x786d50]
mov ecx, dword [ebp]
push eax
mov eax, dword [ebp + 4]
push edx
mov edx, dword [ebx + 8]
sub eax, edi
push ebx
sub ecx, edx
push eax
mov eax, dword [0x798384]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
call fcn.004353b0
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x31]
test al, al
je 0x4297c5
test byte [ecx + 8], 4
je 0x429760
and eax, 0xff
mov ecx, dword [ebp + 4]
shr eax, 1
mov esi, dword [ebx + 0xc]
mov edx, 0x6dc044
shl eax, 2
sub edx, eax
mov edi, dword [esp + 0x64]
sub ecx, esi
mov eax, dword [edx]
mov edx, dword [ebp]
push eax
mov eax, dword [ebx + 8]
push ebx
sub edx, eax
push ecx
mov ecx, dword [0x798384]
lea eax, [esp + 0x5c]
push edx
push eax
push ecx
push edi
call fcn.00434ea0
add esp, 0x1c
jmp 0x4297c9
and eax, 0xff
mov ecx, dword [ebp]
shr eax, 1
mov edi, dword [esp + 0x64]
mov edx, dword [eax*4 + 0x6dc018]
mov eax, dword [ebp + 4]
push edx
mov edx, dword [ebx + 0xc]
sub eax, edx
push ebx
push eax
mov eax, dword [ebx + 8]
sub ecx, eax
mov eax, dword [0x798384]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
push edi
call fcn.00434ea0
add esp, 0x1c
jmp 0x4297c9
mov ecx, dword [ebp + 4]
mov esi, dword [ebx + 0xc]
mov edx, dword [ebp]
mov eax, dword [ebx + 8]
push 1
push 1
sub ecx, esi
push ebx
sub edx, eax
push ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
call fcn.00430770
add esp, 0x1c
mov edi, dword [esp + 0x64]
mov esi, dword [ebp + 0x14]
test esi, esi
mov dword [esp + 0x1c], esi
je 0x429ad4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x429810
cmp byte [esi + 0x18], 8
jne 0x429810
mov esi, dword [esp + 0x20]
mov edi, dword [eax + 4]
and esi, 0xff
mov ecx, 8
shl esi, 5
add esi, 0x786c48
add edi, 0x1e0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x64]
mov al, byte [ebp + 8]
cmp al, 1
jne 0x429873
mov edx, dword [ebp + 0xc]
xor eax, eax
push 1
mov al, byte [edx + 0x34]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea ecx, [eax + ecx*2]
shl ecx, 2
movsx eax, byte [ecx + 0x6dc5a0]
movsx ecx, byte [ecx + 0x6dc5a1]
sub eax, dword [esi + 8]
add ecx, dword [ebp + 4]
add eax, dword [ebp]
sub ecx, dword [esi + 0xc]
test byte [edx + 0x38], 2
je 0x429864
push esi
push ecx
lea edx, [esp + 0x5c]
push eax
push edx
push edi
call fcn.004326b0
add esp, 0x18
jmp 0x429ad4
push 1
push esi
push ecx
push eax
lea eax, [esp + 0x64]
push eax
jmp 0x429acb
cmp al, 2
jne 0x429aaf
mov ecx, dword [ebp]
mov edx, dword [esi + 8]
mov eax, ecx
sub eax, edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x3c], eax
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x2b], 1
jae 0x4298ee
xor edx, edx
mov dl, byte [eax + 0x55]
mov eax, edx
shl eax, 0xb
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 0x6e9940]
cdq
and edx, 0xffff
add eax, edx
mov edx, dword [esp + 0x28]
sar eax, 0x10
neg eax
add edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x704b98]
cdq
and edx, 0xffff
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 0x10
add edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
test byte [eax + 0x1d], 2
je 0x429917
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push 1
push esi
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push edi
call fcn.004326b0
add esp, 0x18
jmp 0x429ad4
mov edx, dword [eax + 8]
and edx, 4
mov dword [esp + 0x4c], edx
jne 0x429943
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x429943
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push 1
push 1
push esi
push ecx
lea eax, [esp + 0x60]
push edx
push eax
jmp 0x429acb
mov dl, byte [0x798544]
cmp byte [ebp + 0x20], dl
jne 0x429990
mov eax, dword [ebp + 0xc]
mov edx, dword [0x5173f4]
mov ax, word [eax + 0x8c]
add eax, edx
mov edx, dword [esp + 0x14]
and eax, 0xf
mov ecx, dword [eax*4 + 0x786d50]
mov eax, dword [esp + 0x28]
push ecx
push esi
push edx
mov edx, dword [0x798384]
lea ecx, [esp + 0x5c]
push eax
push ecx
push edx
push edi
call fcn.00432d80
add esp, 0x1c
jmp 0x429a2b
mov al, byte [eax + 0x31]
test al, al
je 0x429a2b
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x4299e6
shr al, 1
mov dl, 0xb
sub dl, al
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x5173f4]
mov ax, word [eax + 0x8c]
add eax, edx
and eax, 0xf
mov edx, dword [eax*4 + 0x786d50]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [ebx + 0xc]
sub eax, edx
push esi
push eax
mov eax, dword [ebx + 8]
sub ecx, eax
lea eax, [esp + 0x60]
push ecx
mov ecx, dword [0x798384]
push eax
push ecx
jmp 0x429a22
shr al, 1
push eax
mov eax, dword [ebp + 0xc]
mov dx, word [eax + 0x8c]
mov eax, dword [0x5173f4]
add edx, eax
and edx, 0xf
mov eax, dword [edx*4 + 0x786d50]
mov edx, dword [ebx + 0xc]
push eax
mov eax, dword [esp + 0x44]
sub eax, edx
mov edx, dword [ebx + 8]
push esi
sub ecx, edx
mov edx, dword [0x798384]
push eax
push ecx
lea ecx, [esp + 0x64]
push ecx
push edx
push edi
call fcn.004353b0
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x31]
test al, al
je 0x429ad4
test byte [ecx + 8], 4
je 0x429a79
and eax, 0xff
mov ecx, 0x6dc044
shr eax, 1
shl eax, 2
sub ecx, eax
mov eax, dword [ebp + 4]
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0xc]
sub eax, edx
push esi
push eax
mov eax, dword [esi + 8]
sub ecx, eax
mov eax, dword [0x798384]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
push edi
call fcn.00434ea0
jmp 0x429ad1
and eax, 0xff
mov edx, dword [ebp + 4]
shr eax, 1
mov ecx, dword [eax*4 + 0x6dc018]
mov eax, dword [ebp]
push ecx
mov ecx, dword [esi + 0xc]
sub edx, ecx
push esi
push edx
mov edx, dword [esi + 8]
sub eax, edx
mov edx, dword [0x798384]
lea ecx, [esp + 0x5c]
push eax
push ecx
push edx
push edi
call fcn.00434ea0
jmp 0x429ad1
mov eax, dword [ebp + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp]
push 1
push 1
sub eax, edx
push esi
push eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x60]
sub ecx, eax
push ecx
push edx
push edi
call fcn.00430770
add esp, 0x1c
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x429c47
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x429b17
cmp byte [eax + 0x18], 8
jne 0x429b17
mov esi, dword [esp + 0x20]
mov edi, dword [ecx + 4]
and esi, 0xff
mov ecx, 8
shl esi, 5
add esi, 0x786c48
add edi, 0x1e0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x64]
mov cl, byte [ebp + 8]
cmp cl, 1
jne 0x429b87
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x38], 2
je 0x429b50
mov edx, dword [ebp + 4]
mov ecx, dword [eax + 0xc]
push 1
sub edx, ecx
mov ecx, dword [ebp]
push eax
push edx
mov edx, dword [eax + 8]
sub ecx, edx
lea edx, [esp + 0x5c]
push ecx
push edx
push edi
call fcn.004326b0
add esp, 0x18
jmp 0x429c47
test byte [ebp + 0x30], 4
je 0x429c22
mov ecx, dword [ebp + 4]
mov esi, dword [eax + 0xc]
mov edx, dword [ebp]
sub ecx, esi
push eax
push ecx
mov ecx, dword [eax + 8]
lea eax, [esp + 0x58]
sub edx, ecx
mov ecx, dword [0x798384]
push edx
push eax
push ecx
push edi
call fcn.004349a0
add esp, 0x18
jmp 0x429c47
cmp cl, 2
jne 0x429c22
mov ecx, dword [ebp]
mov edx, dword [eax + 8]
sub ecx, edx
mov edx, dword [ebp + 4]
sub edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
test byte [edx + 0x1d], 2
je 0x429bc7
mov eax, dword [esp + 0x14]
push 1
push esi
push eax
push ecx
lea ecx, [esp + 0x60]
push ecx
push edi
call fcn.004326b0
add esp, 0x18
jmp 0x429c47
test byte [edx + 8], 4
je 0x429c10
mov dl, byte [0x798544]
cmp byte [ebp + 0x20], dl
jne 0x429c47
mov edx, dword [ebp + 0xc]
mov esi, dword [0x5173f4]
mov dx, word [edx + 0x8c]
add edx, esi
and edx, 0xf
mov edx, dword [edx*4 + 0x786d50]
push edx
mov edx, dword [0x798384]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x60]
push ecx
push edx
push edi
call fcn.00432d80
jmp 0x429c44
mov eax, dword [esp + 0x14]
push 1
push 1
push esi
push eax
push ecx
lea ecx, [esp + 0x64]
push ecx
jmp 0x429c3e
mov edx, dword [ebp + 4]
mov ecx, dword [eax + 0xc]
push 1
push 1
sub edx, ecx
mov ecx, dword [ebp]
push eax
push edx
mov edx, dword [eax + 8]
sub ecx, edx
lea edx, [esp + 0x60]
push ecx
push edx
push edi
call fcn.00430770
add esp, 0x1c
cmp byte [ebp + 8], 1
jne 0x429d4a
mov eax, dword [ebp + 0xc]
test byte [eax + 0x28], 1
je 0x429d4a
mov cl, byte [eax + 0x8c]
mov esi, dword [0x5173f4]
add ecx, esi
test cl, 0x20
je 0x429d4a
test ebx, ebx
jne 0x429cf1
xor edx, edx
mov edi, dword [ebp + 4]
mov dl, byte [eax + 0x34]
mov esi, dword [0x6dc468]
mov eax, edx
push 1
mov ecx, eax
push 1
shl ecx, 5
add ecx, eax
push esi
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x6dc554]
mov ecx, dword [eax*4 + 0x6e5880]
mov eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [ecx + 0xc]
sub edi, eax
mov eax, dword [esi + 4]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov eax, dword [ecx]
cdq
sub eax, edx
push edi
mov edi, eax
mov eax, dword [ecx + 8]
sar edi, 1
sub edi, eax
mov eax, dword [esi]
cdq
sub eax, edx
lea ecx, [esp + 0x60]
sar eax, 1
sub edi, eax
mov eax, dword [ebp]
add edi, eax
push edi
mov edi, dword [esp + 0x78]
push ecx
push edi
call fcn.00430770
add esp, 0x1c
jmp 0x429d4e
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 4]
mov ecx, dword [0x6dc468]
push 1
cdq
sub eax, edx
push 1
sar eax, 1
add esi, eax
mov eax, dword [ebx + 0xc]
sub esi, eax
mov eax, dword [ecx + 4]
cdq
sub eax, edx
push ecx
sar eax, 1
sub esi, eax
mov eax, dword [ebx]
cdq
sub eax, edx
push esi
mov esi, eax
mov eax, dword [ebx + 8]
sar esi, 1
sub esi, eax
mov eax, dword [ecx]
cdq
sub eax, edx
mov edi, dword [esp + 0x74]
sar eax, 1
sub esi, eax
mov eax, dword [ebp]
add esi, eax
lea edx, [esp + 0x60]
push esi
push edx
push edi
call fcn.00430770
add esp, 0x1c
jmp 0x429d4e
mov edi, dword [esp + 0x64]
mov al, byte [ebp + 0x21]
test al, al
je 0x42a483
test ebx, ebx
jne 0x429d84
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x34]
mov eax, ecx
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
mov ecx, dword [eax*4 + 0x6dc554]
mov edx, dword [ecx*4 + 0x6e5880]
mov eax, dword [edx + 0xc]
jmp 0x429d87
mov eax, dword [ebx + 0xc]
mov cl, byte [ebp + 0x22]
mov byte [esp + 0x38], cl
mov cl, byte [ebp + 8]
mov ebx, dword [esp + 0x38]
cmp cl, 1
jne 0x429dd7
mov esi, dword [ebp + 4]
mov edx, dword [ebp]
sub esi, eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov cl, byte [eax + 0x34]
mov eax, ecx
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
shl eax, 2
cmp byte [eax + 0x6dc59c], 5
jne 0x429dc9
sub esi, 6
cmp dword [eax + 0x6dc558], 0xffffffff
je 0x429e29
sub esi, 0xc
jmp 0x429e29
mov ecx, ebx
mov esi, dword [ebp + 4]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x789198]
mov eax, dword [eax]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp]
sar edx, 1
sub eax, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [ecx + 0x4e3e48]
xor ecx, ecx
lea eax, [eax + eax*4]
cdq
and edx, 7
add eax, edx
sar eax, 3
sub esi, eax
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x18]
shl ecx, 8
mov al, byte [ecx + 0x77e261]
test al, al
je 0x429e29
sub esi, 8
mov eax, dword [esp + 0x14]
and ebx, 0xff
push 1
push 1
mov edx, dword [ebx*4 + 0x789198]
lea ecx, [esp + 0x58]
push edx
push esi
push eax
push ecx
push edi
call fcn.00430770
mov edx, dword [0x7951c8]
add esp, 0x1c
lea eax, [esi + 4]
lea ecx, [esp + 0x50]
push 1
push 1
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push edi
call fcn.00430770
mov ecx, dword [0x795338]
mov edx, dword [esp + 0x30]
add esp, 0x1c
lea eax, [esi + 4]
push 1
push 1
push ecx
push eax
mov eax, dword [ecx]
sub edx, eax
mov eax, dword [ebx*4 + 0x789198]
mov ecx, dword [eax]
add edx, ecx
lea ecx, [esp + 0x60]
push edx
push ecx
push edi
call fcn.00430770
mov edx, dword [0x78fb28]
mov ecx, dword [0x795338]
add esp, 0x1c
mov eax, esi
push 1
push 1
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
sub eax, edx
xor edx, edx
mov dl, byte [ebx + 0x4e3e48]
lea eax, [eax + edx + 4]
lea edx, [esp + 0x5c]
push eax
push ecx
push edx
push edi
call fcn.00430770
mov eax, dword [0x78fb2c]
add esp, 0x1c
mov ecx, esi
push 1
push 1
push eax
mov eax, dword [0x795338]
mov edx, dword [eax + 4]
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x4e3e48]
lea ecx, [ecx + edx + 4]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [eax]
mov eax, dword [ebx*4 + 0x789198]
sub edx, ecx
add edx, dword [eax]
lea ecx, [esp + 0x60]
push edx
push ecx
push edi
call fcn.00430770
mov edx, dword [ebx*4 + 0x789198]
add esp, 0x1c
mov eax, dword [edx]
sub eax, 3
imul eax, dword [ebp + 0x24]
cdq
idiv dword [ebp + 0x28]
mov byte [esp + 0x48], al
mov al, byte [ebp + 8]
cmp al, 1
jne 0x42a14f
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x38]
test al, al
je 0x429f4f
dec al
mov byte [ecx + 0x38], al
mov al, byte [ebp + 0x20]
mov cl, byte [0x798544]
cmp al, cl
jne 0x42a14f
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x28], 0x80
je 0x429fa4
mov edx, dword [0x6e2df4]
mov ecx, dword [0x795338]
push 1
push 1
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov eax, esi
sub eax, edx
xor edx, edx
mov dl, byte [ebx + 0x4e3e48]
add ecx, 2
lea eax, [eax + edx - 4]
lea edx, [esp + 0x5c]
push eax
push ecx
push edx
push edi
call fcn.00430770
add esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 0x20]
xor ecx, ecx
push edx
mov cl, byte [eax + 0x34]
mov dword [esp + 0x50], ecx
call fcn.004a4660
mov ecx, eax
mov eax, dword [esp + 0x50]
mov edx, eax
add esp, 4
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
mov al, byte [eax*4 + 0x6dc59c]
cmp al, 4
jne 0x429ff9
mov eax, dword [ecx + 0x24254]
xor edx, edx
shl eax, 4
div dword [ecx + 0x24258]
mov byte [esp + 0x2c], 0x10
cmp eax, 0xf
jle 0x42a01f
mov byte [esp + 0x24], 0xf
jmp 0x42a02f
cmp al, 5
jne 0x42a025
mov eax, dword [ecx + 0x24254]
xor edx, edx
shl eax, 3
div dword [ecx + 0x24258]
mov byte [esp + 0x2c], 8
cmp eax, 7
jle 0x42a01f
mov byte [esp + 0x24], 7
jmp 0x42a02f
mov byte [esp + 0x24], al
jmp 0x42a02f
mov byte [esp + 0x2c], 0
mov byte [esp + 0x24], 0
mov al, byte [esp + 0x2c]
test al, al
je 0x42a0ed
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
and ecx, 0xff
mov dword [esp + 0x4c], ecx
jbe 0x42a099
mov dword [esp + 0x3c], ecx
mov edx, dword [0x6d8d8c]
mov eax, dword [esp + 0x28]
xor ecx, ecx
push 1
mov cl, byte [ebx + 0x4e3e48]
push 1
push edx
add eax, 3
lea edx, [esi + ecx - 1]
mov dword [esp + 0x34], eax
push edx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.00430770
mov eax, dword [esp + 0x58]
add esp, 0x1c
dec eax
mov dword [esp + 0x3c], eax
jne 0x42a058
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
and edx, 0xff
lea eax, [edx - 1]
cmp ecx, eax
jge 0x42a0ed
sub eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [0x6d8d88]
mov eax, dword [esp + 0x28]
xor edx, edx
push 1
mov dl, byte [ebx + 0x4e3e48]
push 1
push ecx
add eax, 3
lea ecx, [esi + edx - 1]
lea edx, [esp + 0x5c]
push ecx
push eax
push edx
push edi
mov dword [esp + 0x44], eax
call fcn.00430770
mov eax, dword [esp + 0x58]
add esp, 0x1c
dec eax
mov dword [esp + 0x3c], eax
jne 0x42a0b0
mov al, byte [ebp + 0x20]
mov cl, byte [0x798544]
cmp al, cl
jne 0x42a14f
push eax
call fcn.004a4660
mov edx, dword [ebp + 0xc]
mov ecx, eax
xor eax, eax
add esp, 4
mov al, byte [edx + 0x34]
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
xor edx, edx
mov dl, byte [eax*4 + 0x6dc5c8]
mov al, byte [ecx + edx + 0x24544]
test al, al
je 0x42a14f
mov eax, dword [0x782058]
mov edx, dword [esp + 0x14]
push 1
push 1
lea ecx, [esi + 6]
push eax
add edx, 2
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push edi
call fcn.00430770
add esp, 0x1c
mov eax, dword [0x4eb018]
mov ecx, dword [ebp + 0x28]
cmp eax, 0x10
mov eax, 0x55555556
jne 0x42a1a8
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x24]
cmp eax, edx
jge 0x42a17f
mov cx, word [0x51653c]
mov word [esp + 0x18], cx
jmp 0x42a1f1
mov eax, ecx
mov ecx, dword [ebp + 0x24]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jge 0x42a19b
mov dx, word [0x516538]
mov word [esp + 0x18], dx
jmp 0x42a1f1
mov ax, word [0x516690]
mov word [esp + 0x18], ax
jmp 0x42a1f1
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x24]
cmp eax, edx
jge 0x42a1c7
movzx cx, byte [0x5162bc]
mov word [esp + 0x18], cx
jmp 0x42a1f1
mov eax, ecx
mov ecx, dword [ebp + 0x24]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jge 0x42a1e4
movzx dx, byte [0x5162c0]
mov word [esp + 0x18], dx
jmp 0x42a1f1
movzx ax, byte [0x5162b4]
mov word [esp + 0x18], ax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
and ecx, 0xff
lea eax, [esi + 1]
lea ecx, [ecx + edx + 1]
inc edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
push edx
push eax
push ecx
push eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x60]
push eax
push ecx
push edi
call fcn.004308f0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x68]
add esp, 0x1c
lea eax, [esi + 2]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push eax
lea eax, [esp + 0x60]
push edx
push eax
push edi
call fcn.004308f0
mov cl, byte [0x798544]
mov al, byte [ebp + 0x20]
add esp, 0x1c
cmp al, cl
jne 0x42a483
cmp byte [ebp + 8], 2
jne 0x42a483
mov eax, dword [ebp + 0xc]
xor edx, edx
mov byte [esp + 0x34], 6
mov dl, byte [eax + 0x18]
shl edx, 8
mov cl, byte [edx + 0x77e27d]
cmp cl, 1
jne 0x42a345
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], 0
dec ecx
mov dword [esp + 0x28], ecx
mov cl, byte [eax + 0x29]
test cl, cl
jbe 0x42a2e5
mov edx, dword [0x6d8d8c]
mov eax, dword [esp + 0x28]
xor ecx, ecx
push 1
mov cl, byte [ebx + 0x4e3e48]
push 1
push edx
add eax, 3
lea edx, [esi + ecx - 1]
mov dword [esp + 0x34], eax
push edx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.00430770
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x58]
xor edx, edx
add esp, 0x1c
mov dl, byte [ecx + 0x29]
inc eax
cmp eax, edx
mov dword [esp + 0x3c], eax
jb 0x42a29e
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x29]
mov eax, ecx
cmp eax, 7
jae 0x42a402
mov ecx, 7
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov edx, dword [0x6d8d88]
mov eax, dword [esp + 0x28]
xor ecx, ecx
push 1
mov cl, byte [ebx + 0x4e3e48]
push 1
push edx
add eax, 3
lea edx, [esi + ecx - 1]
mov dword [esp + 0x34], eax
push edx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.00430770
mov eax, dword [esp + 0x58]
add esp, 0x1c
dec eax
mov dword [esp + 0x3c], eax
jne 0x42a303
jmp 0x42a402
cmp cl, 4
jne 0x42a407
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov cl, byte [ebx + 0x4e3e48]
lea edx, [esi + ecx + 1]
mov cl, byte [eax + 0x29]
test cl, 0xe0
mov dword [esp + 0x28], edx
jbe 0x42a3b0
mov eax, dword [esp + 0x28]
mov ecx, dword [0x6d8d8c]
mov edx, dword [esp + 0x14]
push 1
sub eax, 3
push 1
push ecx
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x60]
push edx
push eax
push edi
call fcn.00430770
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x58]
xor edx, edx
add esp, 0x1c
mov dl, byte [ecx + 0x29]
inc eax
shr edx, 5
cmp eax, edx
mov dword [esp + 0x3c], eax
jl 0x42a36e
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x29]
mov eax, ecx
shr eax, 5
cmp eax, 5
jae 0x42a402
mov ecx, 5
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x28]
mov edx, dword [0x6d8d88]
push 1
sub eax, 3
push 1
push edx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x60]
push eax
push ecx
push edi
call fcn.00430770
mov eax, dword [esp + 0x58]
add esp, 0x1c
dec eax
mov dword [esp + 0x3c], eax
jne 0x42a3cd
mov byte [esp + 0x34], 0xa
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 0x28]
cmp al, 0xff
je 0x42a455
cmp al, 0xa
jae 0x42a455
mov ecx, dword [esp + 0x34]
and eax, 0xff
push 1
push 1
mov eax, dword [eax*4 + 0x6e2df0]
and ecx, 0xff
push eax
mov edx, esi
xor eax, eax
sub edx, ecx
mov al, byte [ebx + 0x4e3e48]
mov ecx, dword [esp + 0x20]
add edx, eax
add ecx, 2
push edx
lea edx, [esp + 0x60]
push ecx
push edx
push edi
call fcn.00430770
add esp, 0x1c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0x12
jne 0x42a483
mov ecx, dword [0x782060]
mov edx, dword [esp + 0x14]
push 1
push 1
add esi, 6
push ecx
add edx, 2
push esi
lea eax, [esp + 0x60]
push edx
push eax
push edi
call fcn.00430770
add esp, 0x1c
mov al, byte [0x4eb008]
test al, al
jne 0x42a55b
cmp byte [ebp + 8], 2
jne 0x42a55b
mov cl, byte [ebp + 0x22]
mov esi, dword [ebp]
mov byte [esp + 0x38], cl
mov ebx, dword [ebp + 4]
mov ecx, dword [esp + 0x38]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x789198]
mov eax, dword [edx]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
xor eax, eax
mov al, byte [ecx + 0x4e3e48]
mov ecx, eax
lea eax, [ecx + ecx*4]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 3
sub ebx, eax
mov al, byte [edx + 0x28]
cmp al, 0xff
je 0x42a50f
cmp al, 0xa
jae 0x42a50f
and eax, 0xff
push 1
push 1
lea ecx, [ebx + ecx - 6]
mov eax, dword [eax*4 + 0x6e2df0]
lea edx, [esi + 2]
push eax
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push edi
call fcn.00430770
add esp, 0x1c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 3
jne 0x42a532
mov ecx, dword [0x6e2df0]
push 1
push 1
add ebx, 2
push ecx
add esi, 2
push ebx
lea edx, [esp + 0x60]
push esi
push edx
jmp 0x42a552
test dword [eax + 8], 0x100000
je 0x42a55b
mov eax, dword [0x6e2df4]
push 1
push 1
add ebx, 2
push eax
add esi, 2
push ebx
lea ecx, [esp + 0x60]
push esi
push ecx
push edi
call fcn.00430770
add esp, 0x1c
cmp byte [ebp + 8], 1
jne 0x42a570
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x38]
test al, al
je 0x42a570
dec al
mov byte [ecx + 0x38], al
cmp byte [ebp + 8], 2
jne 0x42a585
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x1d]
test al, al
je 0x42a585
dec al
mov byte [ecx + 0x1d], al
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x42943a
mov esi, dword [esp + 0x64]
push 0
push esi
call fcn.004282f0
add esp, 8
push 0
push esi
call fcn.0042a5d0
add esp, 8
push 1
push esi
call fcn.004282f0
add esp, 8
push 1
push esi
call fcn.0042a5d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret