Function at 0x421950
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47051f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xeb8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xed4]
xor ebp, ebp
push edi
cmp esi, ebp
mov dword [esp + 0x14], ecx
je 0x4222b8
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f84
mov dword [esp + 0xed0], ebp
call fcn.00459ad6
cmp eax, ebp
je 0x4219ac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov ebx, eax
jmp 0x4219ae
xor ebx, ebx
push 0x4b1a08
mov ecx, ebx
mov dword [esp + 0x30], ebx
call fcn.00416f10
mov eax, str.Loading_packet_file...
test eax, eax
je 0x4219d6
push 1
push eax
push ebp
lea ecx, [ebx + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x5c]
call fcn.004011e0
push 1
push esi
lea ecx, [esp + 0x64]
mov byte [esp + 0xed8], 1
call fcn.00401330
test eax, eax
jne 0x421a1d
mov ecx, 0x4ac960
test ecx, ecx
je 0x421a0f
push 1
push ecx
push ebp
lea ecx, [ebx + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x5c]
call fcn.00402560
jmp 0x42228f
mov ecx, 0x213
xor eax, eax
lea edi, [esp + 0x27c]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x27c]
push edx
push eax
push ebp
lea ecx, [esp + 0x68]
mov dword [esp + 0xacc], 0xfffafffa
mov dword [esp + 0x44], ebp
call fcn.00401c90
lea ecx, [esp + 0x30]
mov edi, eax
push ecx
lea ecx, [esp + 0x60]
call fcn.004027d0
mov esi, eax
mov byte [esp + 0xed0], 2
call fcn.00459ad6
cmp eax, ebp
je 0x421a7f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x421a81
xor eax, eax
lea ecx, [eax + 0x908]
push esi
mov eax, dword [ecx + 8]
push eax
call fcn.0045335f
lea ecx, [esp + 0x30]
mov byte [esp + 0xed0], 1
call fcn.004584d6
call fcn.00459ad6
cmp eax, ebp
je 0x421ab6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
jmp 0x421ab8
xor esi, esi
lea ecx, [esp + 0x5c]
call fcn.00403e00
push eax
lea ecx, [esi + 0x91c]
call fcn.0045866d
lea ecx, [esp + 0x5c]
call fcn.00402560
cmp edi, ebp
jne 0x421b37
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x421aef
push eax
call fcn.00458a71
add esp, 4
mov dword [esp + 0x38], ebp
mov eax, 0x4ac960
test eax, eax
je 0x421b07
push 1
push eax
push ebp
lea ecx, [ebx + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xed0], 0
call fcn.004012a0
mov dword [esp + 0xed0], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x422792
mov ebx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
lea ecx, [ebx + 0x278]
call fcn.00453198
mov eax, dword [ebx + 0x2b8]
add ebx, 0x2b4
cmp eax, ebp
je 0x421b90
mov eax, dword [ebx + 8]
xor edi, edi
cmp eax, ebp
jbe 0x421b90
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + edi*4]
cmp esi, ebp
je 0x421b88
lea edx, [esi + 0xc]
push 1
push edx
call fcn.00451847
lea eax, [esi + 8]
push 1
push eax
call fcn.00451847
mov esi, dword [esi]
cmp esi, ebp
jne 0x421b6c
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jb 0x421b62
mov eax, dword [ebx + 4]
push eax
call fcn.00458a71
mov ecx, dword [ebx + 0x14]
xor esi, esi
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
call fcn.00453470
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x14], esi
mov eax, dword [ecx + 0x2d4]
lea ebp, [ecx + 0x2d0]
cmp eax, esi
mov dword [esp + 0x4c], ebp
je 0x421c02
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x10], eax
jbe 0x421c02
mov edx, dword [ebp + 4]
mov edi, dword [edx + eax*4]
cmp edi, esi
je 0x421bf6
lea eax, [edi + 8]
push 1
push eax
call fcn.00451847
mov edi, dword [edi]
cmp edi, esi
jne 0x421be1
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x421bd7
mov eax, dword [ebp + 4]
push eax
call fcn.00458a71
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
call fcn.00453470
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x14], esi
mov eax, dword [ecx + 0x2f0]
lea edi, [ecx + 0x2ec]
cmp eax, esi
je 0x421c70
mov eax, dword [edi + 8]
mov dword [esp + 0x20], esi
cmp eax, esi
jbe 0x421c70
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x20]
mov esi, dword [edx + eax*4]
test esi, esi
je 0x421c60
lea ecx, [esi + 8]
push 1
push ecx
call fcn.00451847
mov esi, dword [esi]
test esi, esi
jne 0x421c4f
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x421c41
mov eax, dword [edi + 4]
push eax
call fcn.00458a71
mov ecx, dword [edi + 0x14]
xor esi, esi
add esp, 4
mov dword [edi + 4], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
call fcn.00453470
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x2b0]
lea ecx, [esi + 0x250]
push edx
mov dword [esp + 0x5c], ecx
call fcn.0045866d
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 0x280]
lea ecx, [esi + 0x278]
push edx
push eax
call fcn.0045335f
lea eax, [esp + 0x4b0]
lea ecx, [esi + 0xb98]
push eax
mov dword [esi + 0x308], 1
mov dword [esp + 0x40], ecx
call fcn.0045866d
lea ecx, [esp + 0x6cc]
push ecx
lea ecx, [esp + 0x38]
call fcn.0045854a
xor esi, esi
push 0x4b1a08
lea ecx, [esp + 0x28]
mov byte [esp + 0xed4], 3
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], 0xffffffff
call fcn.0045854a
push 0x4b1a08
lea ecx, [esp + 0x20]
mov byte [esp + 0xed4], 4
call fcn.0045854a
mov eax, dword [esp + 0x6b0]
mov byte [esp + 0xed0], 5
cmp eax, esi
mov dword [esp + 0x44], esi
jle 0x421fc6
mov dword [esp + 0x48], esi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
lea esi, [eax + edx]
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0045854a
lea ecx, [esp + 0x18]
mov byte [esp + 0xed0], 6
call fcn.0045899f
mov edx, dword [esp + 0x18]
lea ebp, [esi + 0x204]
push ebp
push edx
mov ecx, ebx
call fcn.00429800
mov ecx, eax
call fcn.0045866d
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x60c]
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
call fcn.00429910
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x604]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.00429910
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov eax, dword [esi + 0x614]
cmp eax, 1
jne 0x421de7
inc dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push 0x4aa6d4
push eax
call fcn.0043f8ef
add esp, 8
test eax, eax
jne 0x421e05
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
push str.PhaseCheck
push edx
call fcn.0043f8ef
mov eax, dword [esi + 0x60c]
add esp, 8
test eax, eax
je 0x421f11
push ebp
call fcn.0043f601
add esp, 4
test eax, eax
jne 0x421e3f
test byte [esi + 0x608], 1
jne 0x421f11
mov eax, dword [esp + 0x10]
push 0x4aa6d4
inc eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.00451311
test eax, eax
jne 0x421e67
mov dword [esp + 0x50], 1
jmp 0x421efe
mov eax, dword [esp + 0x18]
push str.FLASH
push eax
call fcn.0043f8ef
add esp, 8
test eax, eax
jne 0x421e87
mov dword [esp + 0x54], 1
jmp 0x421efe
mov ecx, dword [esp + 0x18]
push str.PhaseCheck
push ecx
call fcn.0043f8ef
add esp, 8
test eax, eax
je 0x421efe
mov edx, dword [esp + 0x18]
push str.FDL2
push edx
call fcn.0043f8ef
add esp, 8
test eax, eax
jne 0x421efe
mov ecx, dword [esp + 0x14]
push eax
push ebp
call fcn.00425c20
mov ecx, dword [esp + 0x14]
push 1
push ebp
mov dword [ecx + 0xb5c], eax
call fcn.00425c20
mov ecx, dword [esp + 0x14]
push 2
push ebp
mov dword [ecx + 0xb64], eax
call fcn.00425c20
mov ecx, dword [esp + 0x14]
push 3
push ebp
mov dword [ecx + 0xb6c], eax
call fcn.00425c20
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xb74], eax
cmp dword [esi + 0x614], 1
jne 0x421f8b
dec dword [esp + 0x20]
jmp 0x421f8b
mov edx, dword [esp + 0x18]
push 0x4b1a08
push edx
mov ecx, ebx
call fcn.00429800
mov ecx, eax
call fcn.0045866d
mov eax, dword [esi + 0x614]
test eax, eax
jne 0x421f8b
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x421f4c
push 0x4ac95c
lea ecx, [esp + 0x28]
call fcn.00458853
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.0045888f
mov eax, dword [esi + 0x60c]
test eax, eax
jne 0x421f8b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
test eax, eax
je 0x421f7d
push 0x4ac95c
lea ecx, [esp + 0x20]
call fcn.00458853
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.0045888f
lea ecx, [esp + 0x18]
mov byte [esp + 0xed0], 5
call fcn.004584d6
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x6b0]
inc eax
add edx, 0xa14
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jl 0x421d5b
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x60]
call fcn.00402580
mov eax, dword [esp + 0x6b0]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
sub eax, esi
xor edx, edx
cmp eax, ecx
jne 0x421ff0
mov edx, 1
mov eax, dword [esp + 0x6c0]
xor ecx, ecx
test eax, eax
je 0x422002
cmp eax, 3
jne 0x422007
mov ecx, 1
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x4220a1
push 0
push 0
push str.Configure_dangerouse:_have_not_selected_to_earase_flash._nPlease_select_right_packet_
call fcn.0045f42f
mov ecx, 0x4ac960
test ecx, ecx
je 0x42203e
mov edx, dword [esp + 0x2c]
push 1
push ecx
push 0
lea ecx, [edx + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xed0], 4
call fcn.004584d6
lea ecx, [esp + 0x24]
mov byte [esp + 0xed0], 3
call fcn.004584d6
lea ecx, [esp + 0x34]
mov byte [esp + 0xed0], 1
call fcn.004584d6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xed0], 0
call fcn.004012a0
mov dword [esp + 0xed0], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x422792
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x42213b
push 0
push 0
push str.Configure_dangerouse:_have_not_selected_NV_file_to_dwonload._nPlease_select_right_packet_
call fcn.0045f42f
mov eax, 0x4ac960
test eax, eax
je 0x4220d8
mov ecx, dword [esp + 0x2c]
push 1
push eax
push 0
add ecx, 0x1d90
call fcn.004617c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xed0], 4
call fcn.004584d6
lea ecx, [esp + 0x24]
mov byte [esp + 0xed0], 3
call fcn.004584d6
lea ecx, [esp + 0x34]
mov byte [esp + 0xed0], 1
call fcn.004584d6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xed0], 0
call fcn.004012a0
mov dword [esp + 0xed0], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x422792
mov eax, dword [esp + 0x6c4]
test eax, eax
jne 0x4221d8
push 0
push 0
push str.Configure_dangerouse:_have_not_selected_any_NV_item_to_backup._nPlease_select_right_packet_
call fcn.0045f42f
mov edx, 0x4ac960
test edx, edx
je 0x422175
mov eax, dword [esp + 0x2c]
push 1
push edx
push 0
lea ecx, [eax + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xed0], 4
call fcn.004584d6
lea ecx, [esp + 0x24]
mov byte [esp + 0xed0], 3
call fcn.004584d6
lea ecx, [esp + 0x34]
mov byte [esp + 0xed0], 1
call fcn.004584d6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xed0], 0
call fcn.004012a0
mov dword [esp + 0xed0], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x422792
test edx, edx
jne 0x422314
mov eax, dword [esp + 0x6bc]
test eax, eax
je 0x4222bf
test ecx, ecx
je 0x4222bf
mov ecx, dword [0x4ad780]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push str.Configure_dangerouse:_have_selected_repartition__nbut_not_selected_all_files_to_download._n__s__nPlease_select_right_packet_
push eax
mov byte [esp + 0xedc], 7
call fcn.00451685
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push ecx
call fcn.0045f42f
mov edx, 0x4ac960
test edx, edx
je 0x42224b
mov eax, dword [esp + 0x2c]
push 1
push edx
push 0
lea ecx, [eax + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x10]
mov byte [esp + 0xed0], 5
call fcn.004584d6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xed0], 4
call fcn.004584d6
lea ecx, [esp + 0x24]
mov byte [esp + 0xed0], 3
call fcn.004584d6
lea ecx, [esp + 0x34]
mov byte [esp + 0xed0], 1
call fcn.004584d6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xed0], 0
call fcn.004012a0
mov dword [esp + 0xed0], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x422792
mov ecx, dword [0x4ad780]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push str.Configure_dangerouse:_have_not_selected_all_files_to_dwonload._n__s_
push eax
mov byte [esp + 0xedc], 8
call fcn.00451685
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push ecx
call fcn.0045f42f
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457fae
lea ecx, [esp + 0x10]
mov byte [esp + 0xed0], 5
call fcn.004584d6
mov edx, dword [esp + 0x14]
mov ecx, 0x213
lea esi, [esp + 0x27c]
lea edi, [edx + 0x310]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4ad780]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov byte [esp + 0xed0], 0xa
mov ecx, dword [eax - 8]
test ecx, ecx
mov ecx, dword [esp + 0x3c]
jne 0x422362
mov edx, dword [esp + 0x58]
mov eax, dword [ecx]
push eax
lea eax, [esp + 0x44]
mov ecx, dword [edx]
push ecx
push str._s_:__s
push eax
jmp 0x422370
mov ecx, dword [ecx]
lea edx, [esp + 0x40]
push ecx
push eax
push str._s_:__s
push edx
call fcn.00451685
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
push eax
call fcn.00416f10
mov edx, dword [0x4b1ca8]
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push 0x104
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x422703
lea eax, [esp + 0x74]
push 0x2e
push eax
call fcn.0043f5c1
lea ecx, [esp + 0x7c]
push str..ini
push ecx
mov word [eax], si
call fcn.0043f572
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 0xffffffff
je 0x422703
cmp dword [0x4b1d38], esi
je 0x422703
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xaca]
mov word [esp + 0xac8], si
rep stosd dword es:[edi], eax
lea edx, [esp + 0x74]
stosw word es:[edi], ax
push edx
lea eax, [esp + 0xacc]
push 0x200
push eax
push 0x4b1a08
push 0x4aa6d4
push 0x4aa6d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, esi
je 0x422703
lea ecx, [esp + 0xac8]
push ecx
lea ecx, [esp + 0x18]
call fcn.0045854a
lea ecx, [esp + 0x14]
mov byte [esp + 0xed0], 0xb
call fcn.004517d2
lea ecx, [esp + 0x14]
call fcn.00451724
push 0x40
lea ecx, [esp + 0x18]
call fcn.00458941
mov esi, eax
cmp esi, 0xffffffff
je 0x4226f2
lea edx, [esp + 0x3c]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.00451277
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov byte [esp + 0xed0], 0xc
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004511fb
mov edx, dword [esp + 0x30]
push 0x4aa6d4
mov byte [esp + 0xed4], 0xd
mov dword [esp + 0x2c], edx
call fcn.0045186b
xor edx, edx
div dword [ebx + 8]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x10], edx
je 0x422507
mov ecx, edx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x422507
mov edx, dword [edi + 8]
push 0x4aa6d4
push edx
call fcn.0043f64f
add esp, 8
test eax, eax
je 0x4224ff
mov edi, dword [edi]
test edi, edi
jne 0x4224e2
jmp 0x422507
test edi, edi
jne 0x4225bd
mov eax, dword [ebx + 4]
test eax, eax
jne 0x42253d
mov esi, dword [ebx + 8]
lea edi, [esi*4]
push edi
call fcn.00458a48
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x422573
mov eax, dword [ebx + 0x18]
push 0x10
lea ecx, [ebx + 0x14]
push eax
push ecx
call fcn.00453450
mov ecx, dword [ebx + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x422573
inc ecx
mov edx, dword [ebx + 0x10]
mov dword [eax], edx
mov dword [ebx + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x422565
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
inc esi
push 1
mov eax, dword [edi]
mov dword [ebx + 0xc], esi
lea esi, [edi + 8]
mov dword [ebx + 0x10], eax
push esi
call fcn.00451819
lea ecx, [edi + 0xc]
push 1
push ecx
call fcn.00451819
mov edx, dword [esp + 0x10]
push 0x4aa6d4
mov ecx, esi
mov dword [edi + 4], edx
call fcn.0045866d
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + eax*4]
mov dword [edi], edx
mov ecx, dword [ebx + 4]
mov dword [ecx + eax*4], edi
mov edx, dword [esp + 0x28]
lea ecx, [edi + 0xc]
push edx
call fcn.0045866d
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043f9ce
add esp, 4
mov dword [esp + 0x28], eax
push 0x4aa6d4
call fcn.0045186b
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 4]
test eax, eax
mov ebx, edx
je 0x42261f
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x42261f
mov ecx, dword [esi + 8]
push 0x4aa6d4
push ecx
call fcn.0043f64f
add esp, 8
test eax, eax
je 0x422617
mov esi, dword [esi]
test esi, esi
jne 0x4225fa
jmp 0x42261f
test esi, esi
jne 0x4226c9
mov eax, dword [ebp + 4]
test eax, eax
jne 0x422655
mov esi, dword [ebp + 8]
lea edi, [esi*4]
push edi
call fcn.00458a48
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x42268b
mov eax, dword [ebp + 0x18]
push 0x10
lea ecx, [ebp + 0x14]
push eax
push ecx
call fcn.00453450
mov ecx, dword [ebp + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x42268b
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x42267d
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
inc edi
push 1
mov eax, dword [esi]
mov dword [ebp + 0xc], edi
lea edi, [esi + 8]
mov dword [ebp + 0x10], eax
push edi
call fcn.00451819
mov dword [esi + 0xc], 0
push 0x4aa6d4
mov ecx, edi
mov dword [esi + 4], ebx
call fcn.0045866d
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
mov dword [esi], edx
mov eax, dword [ebp + 4]
mov dword [eax + ebx*4], esi
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xed0], 0xc
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x30]
call fcn.004584d6
lea ecx, [esp + 0x3c]
mov byte [esp + 0xed0], 0xb
call fcn.004584d6
lea ecx, [esp + 0x14]
mov byte [esp + 0xed0], 0xa
call fcn.004584d6
mov edx, 0x4ac960
test edx, edx
je 0x422720
mov eax, dword [esp + 0x2c]
push 1
push edx
push 0
lea ecx, [eax + 0x1d90]
call fcn.004617c6
lea ecx, [esp + 0x40]
mov byte [esp + 0xed0], 5
call fcn.004584d6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xed0], 4
call fcn.004584d6
lea ecx, [esp + 0x24]
mov byte [esp + 0xed0], 3
call fcn.004584d6
lea ecx, [esp + 0x34]
mov byte [esp + 0xed0], 1
call fcn.004584d6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xed0], 0
call fcn.004012a0
mov dword [esp + 0xed0], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
mov eax, 1
mov ecx, dword [esp + 0xec8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec4
ret 4