Function at 0x423790
Capabilities:
Terminate process

Disassembly:
sub esp, 0x174
mov eax, dword [0x562940]
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.0049d580
mov esi, eax
cmp esi, edi
je 0x4238ab
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
push ebx
mov ebx, dword [esi + 4]
push ebp
mov ebp, dword [0x14dea40]
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 [0x14dea40], ebp
push ecx
mov eax, esi
mov dword [esp + 0x40], ebx
xor ebp, ebp
mov dword [esi + 0x10], edi
call fcn.0049d810
add esp, 0x20
neg eax
sbb eax, eax
inc eax
test ebx, ebx
mov dword [esi + 0x18], eax
jbe 0x42385f
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.0049d810
add esp, 0x20
test eax, eax
jne 0x42385f
lea eax, [esp + 0x80]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423848
sub eax, edx
lea ebp, [eax + ebp + 1]
call fcn.0049dcd0
inc edi
cmp edi, ebx
jb 0x423814
lea edi, [ebx + ebx*2]
shl edi, 3
add ebp, edi
push ebp
call fcn.0051b1e7
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x4238b2
call fcn.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
xor eax, eax
jmp 0x423d31
push ebp
push 0
push ebx
call fcn.0042b1c0
add ebx, edi
mov edi, dword [esp + 0x2c]
shl edi, 2
push edi
mov dword [esp + 0x20], ebx
call fcn.0051b1e7
add esp, 0x10
test eax, eax
mov dword [esp + 0x28], eax
jne 0x42390b
call fcn.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
push edi
push 0
push eax
call fcn.0042b1c0
add esp, 0xc
mov ebp, 1
lea esp, [esp]
cmp ebp, dword [esp + 0x20]
ja 0x423930
shl ebp, 1
cmp ebp, 0x400
jle 0x423920
lea eax, [ebp*4 + 0x320]
push eax
call fcn.0051b1e7
mov edi, eax
add esp, 4
test edi, edi
jne 0x423977
call fcn.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
lea eax, [ebp*4 + 0x320]
push eax
push 0
push edi
call fcn.0042b1c0
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 0x4239c8
jmp 0x4239b0
mov edx, dword [edi + 0x318]
mov dword [edx + eax*4], 0
mov ecx, dword [edi + 0x314]
inc eax
cmp eax, ecx
jl 0x4239b0
mov eax, dword [esp + 0x188]
push 0xff
push eax
push edi
call fcn.0051a040
mov ecx, dword [esp + 0x198]
push 0xff
push ecx
lea ebp, [edi + 0x100]
push ebp
mov byte [edi + 0xff], 0
call fcn.0051a040
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 0x423a10
sub eax, edx
cmp eax, 4
jbe 0x423ac4
lea eax, [edi + 0x100]
lea edx, [eax + 1]
jmp 0x423a30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423a30
sub eax, edx
lea eax, [eax + edi + 0xfc]
test eax, eax
je 0x423ac4
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 0x423aa4
cmp eax, ecx
je 0x423a89
cmp eax, 0x61
jl 0x423a78
cmp eax, 0x7a
jg 0x423a78
sub eax, 0x20
cmp ecx, 0x61
jl 0x423a85
cmp ecx, 0x7a
jg 0x423a85
sub ecx, 0x20
cmp eax, ecx
jne 0x423a93
test eax, eax
je 0x423aa4
mov eax, dword [esp + 0x14]
jmp 0x423a58
xor edx, edx
cmp eax, ecx
setge dl
lea edx, [edx + edx - 1]
mov eax, edx
test eax, eax
jne 0x423ac0
lea eax, [edi + 0x100]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423ab0
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.0049d810
add esp, 0x20
neg eax
sbb eax, eax
inc eax
test ebp, ebp
mov dword [esi + 0x18], eax
mov dword [esp + 0x14], 0
jbe 0x423cc1
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.0049d810
add esp, 0x20
test eax, eax
jne 0x423cc1
mov eax, dword [esp + 0x4c]
test eax, eax
jbe 0x423b76
mov ecx, dword [esp + 0x44]
push ecx
call dword [0x8c3980]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add esp, 4
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x18], ecx
mov al, byte [esp + 0x80]
test al, al
lea ebp, [esp + 0x80]
je 0x423ba8
jmp 0x423b90
movsx eax, byte [ebp]
push eax
call fcn.0051aa1d
add esp, 4
mov byte [ebp], al
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x423b90
mov ecx, dword [edi + 0x314]
push ecx
lea eax, [esp + 0x84]
call fcn.00421970
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 0x423be0
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
test dl, dl
jne 0x423be0
mov ecx, ebx
lea ebp, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x423bf0
sub ecx, ebp
dec ecx
test ecx, ecx
jl 0x423c10
mov edi, edi
mov dl, byte [ecx + ebx]
cmp dl, 0x2f
je 0x423c10
cmp dl, 0x5c
je 0x423c10
dec ecx
jns 0x423c00
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 0x423c20
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 0x423ca7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
je 0x423ca3
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.0049d810
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 0x423b22
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
shl esi, 2
push esi
push ebx
call fcn.0043ca80
mov edx, dword [0x14d68e8]
push edx
mov dword [edi + 0x304], eax
call dword [0x8c3980]
push eax
push esi
push ebx
call fcn.0043cb10
mov dword [edi + 0x308], eax
mov eax, dword [edi + 0x304]
push eax
call dword [0x8c3980]
mov dword [edi + 0x304], eax
mov eax, dword [edi + 0x308]
push eax
call dword [0x8c3980]
push ebx
mov dword [edi + 0x308], eax
call fcn.0051ada8
mov eax, dword [esp + 0x40]
add esp, 0x24
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.00523319