Function at 0x42ac20
Capabilities:
Terminate process

Disassembly:
sub esp, 0x174
mov eax, dword [0x570930]
xor eax, dword [esp + 0x174]
push esi
push edi
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x180]
xor edi, edi
mov dword [esp + 0x10], edi
call fcn.004a8aa0
mov esi, eax
cmp esi, edi
je 0x42ad3b
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
push ebx
mov ebx, dword [esi + 4]
push ebp
mov ebp, dword [0x16358c0]
push edi
push edi
push edi
push edi
push edi
mov dword [esp + 0x38], eax
lea eax, [esi + 0x78]
push edi
mov dword [esi + 0x14], ecx
push eax
add ebp, ebx
lea ecx, [esi + 0x28]
mov dword [0x16358c0], ebp
push ecx
mov eax, esi
mov dword [esp + 0x40], ebx
xor ebp, ebp
mov dword [esi + 0x10], edi
call fcn.004a8cd0
add esp, 0x20
neg eax
sbb eax, eax
inc eax
test ebx, ebx
mov dword [esi + 0x18], eax
jbe 0x42acef
push 0
push 0
push 0
push 0
push 0x100
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x48]
push 0
push eax
mov eax, esi
call fcn.004a8cd0
add esp, 0x20
test eax, eax
jne 0x42acef
lea eax, [esp + 0x80]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42acd8
sub eax, edx
lea ebp, [eax + ebp + 1]
call fcn.004a9100
inc edi
cmp edi, ebx
jb 0x42aca4
lea edi, [ebx + ebx*2]
shl edi, 3
add ebp, edi
push ebp
call fcn.005268b7
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x42ad42
call fcn.00462b20
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00462450
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00462450
add esp, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00527e27
xor eax, eax
jmp 0x42b184
push ebp
push 0
push ebx
call fcn.00432670
add ebx, edi
mov edi, dword [esp + 0x2c]
shl edi, 2
push edi
mov dword [esp + 0x20], ebx
call fcn.005268b7
add esp, 0x10
test eax, eax
mov dword [esp + 0x28], eax
jne 0x42ad9b
call fcn.00462b20
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00462450
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00462450
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00527e27
push edi
push 0
push eax
call fcn.00432670
add esp, 0xc
mov ebp, 1
lea esp, [esp]
cmp ebp, dword [esp + 0x20]
ja 0x42adc0
shl ebp, 1
cmp ebp, 0x400
jle 0x42adb0
lea eax, [ebp*4 + 0x320]
push eax
call fcn.005268b7
mov edi, eax
add esp, 4
test edi, edi
jne 0x42ae07
call fcn.00462b20
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00462450
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00462450
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00527e27
lea eax, [ebp*4 + 0x320]
push eax
push 0
push edi
call fcn.00432670
lea ecx, [edi + 0x320]
mov dword [edi + 0x318], ecx
mov ecx, ebp
add esp, 0xc
xor eax, eax
test ecx, ecx
mov dword [edi + 0x314], ebp
jle 0x42ae58
jmp 0x42ae40
mov edx, dword [edi + 0x318]
mov dword [edx + eax*4], 0
mov ecx, dword [edi + 0x314]
inc eax
cmp eax, ecx
jl 0x42ae40
mov eax, dword [esp + 0x188]
push 0xff
push eax
push edi
call fcn.00525500
mov ecx, dword [esp + 0x198]
push 0xff
push ecx
lea ebp, [edi + 0x100]
push ebp
mov byte [edi + 0xff], 0
call fcn.00525500
mov eax, ebp
add esp, 0x18
mov byte [ebp + 0xff], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42aea0
sub eax, edx
cmp eax, 4
jbe 0x42af54
lea eax, [edi + 0x100]
lea edx, [eax + 1]
jmp 0x42aec0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42aec0
sub eax, edx
lea eax, [eax + edi + 0xfc]
test eax, eax
je 0x42af54
mov edx, str..pk3
sub eax, edx
mov ebx, 0x1869f
mov dword [esp + 0x14], eax
movsx eax, byte [edx + eax]
movsx ecx, byte [edx]
inc edx
mov ebp, ebx
dec ebx
test ebp, ebp
je 0x42af34
cmp eax, ecx
je 0x42af19
cmp eax, 0x61
jl 0x42af08
cmp eax, 0x7a
jg 0x42af08
sub eax, 0x20
cmp ecx, 0x61
jl 0x42af15
cmp ecx, 0x7a
jg 0x42af15
sub ecx, 0x20
cmp eax, ecx
jne 0x42af23
test eax, eax
je 0x42af34
mov eax, dword [esp + 0x14]
jmp 0x42aee8
xor edx, edx
cmp eax, ecx
setge dl
lea edx, [edx + edx - 1]
mov eax, edx
test eax, eax
jne 0x42af50
lea eax, [edi + 0x100]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42af40
sub eax, edx
mov byte [eax + edi + 0xfc], cl
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
push 0
push 0
push 0
mov dword [edi + 0x300], esi
mov dword [edi + 0x30c], ebp
mov eax, dword [esi + 0x24]
push 0
mov dword [esi + 0x14], eax
push 0
push 0
lea eax, [esi + 0x78]
push eax
lea eax, [esi + 0x28]
push eax
mov eax, esi
mov dword [esi + 0x10], 0
call fcn.004a8cd0
add esp, 0x20
neg eax
sbb eax, eax
inc eax
test ebp, ebp
mov dword [esi + 0x18], eax
mov dword [esp + 0x14], 0
jbe 0x42b141
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x10], ecx
push 0
push 0
push 0
push 0
push 0x100
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x48]
push 0
push eax
mov eax, esi
call fcn.004a8cd0
add esp, 0x20
test eax, eax
jne 0x42b141
mov eax, dword [esp + 0x4c]
test eax, eax
jbe 0x42affc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov dword [edx + eax*4], ecx
inc eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x80]
test al, al
lea ebp, [esp + 0x80]
je 0x42b028
mov edi, edi
movsx eax, byte [ebp]
push eax
call fcn.00525edd
add esp, 4
mov byte [ebp], al
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x42b010
mov ecx, dword [edi + 0x314]
push ecx
lea eax, [esp + 0x84]
call fcn.00428d50
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ebp, ebx
lea edx, [esp + 0x84]
add esp, 4
mov dword [eax + 0xc], ebx
lea ecx, [esp + 0x80]
sub ebp, edx
jmp 0x42b060
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
test dl, dl
jne 0x42b060
mov ecx, ebx
lea ebp, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42b070
sub ecx, ebp
dec ecx
test ecx, ecx
jl 0x42b090
mov edi, edi
mov dl, byte [ecx + ebx]
cmp dl, 0x2f
je 0x42b090
cmp dl, 0x5c
je 0x42b090
dec ecx
jns 0x42b080
lea ecx, [ecx + ebx + 1]
mov dword [eax], ecx
lea ecx, [esp + 0x80]
lea ebp, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42b0a0
mov edx, dword [esi + 0x14]
sub ecx, ebp
mov dword [eax - 4], edx
mov ebp, dword [edi + 0x318]
mov edx, dword [esp + 0x2c]
mov ebp, dword [ebp + edx*4]
lea ebx, [ebx + ecx + 1]
lea ecx, [eax - 4]
mov dword [eax + 0x10], ebp
mov ebp, dword [edi + 0x318]
mov dword [ebp + edx*4], ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42b127
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
je 0x42b123
mov ecx, dword [esi + 0x50]
mov ebp, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
push 0
push 0
push 0
mov dword [esi + 0x10], eax
push 0
add ecx, ebp
push 0
lea eax, [esi + 0x78]
push eax
lea ecx, [ecx + edx + 0x2e]
mov edx, dword [esi + 0x14]
lea eax, [esi + 0x28]
add edx, ecx
push eax
mov eax, esi
mov dword [esi + 0x14], edx
call fcn.004a8cd0
add esp, 0x20
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x18
inc ecx
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jb 0x42afb2
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
shl esi, 2
push esi
push ebx
call fcn.004445b0
mov edx, dword [0x162d768]
push edx
push esi
push ebx
mov dword [edi + 0x304], eax
call fcn.00444640
push ebx
mov dword [edi + 0x308], eax
call fcn.00526479
mov eax, dword [esp + 0x34]
add esp, 0x18
pop ebp
mov dword [edi + 0x31c], eax
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, dword [esp + 0x17c]
pop edi
pop esi
add esp, 0x174
jmp fcn.0052e7b9