Function at 0x503a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xfc], 0x6160fc
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xf0], eax
push eax
mov eax, dword [ebp - 0xf0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xe4]
mov edx, 0
mov ecx, 4
mov edi, eax
mov eax, edx
and eax, 0xffff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xe0], eax
add esp, 0xfffffff8
mov dword [esp], 0x40
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call eax
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0xd4], eax
add esp, 0xfffffff8
mov eax, dword [ebp - 0xe8]
mov dword [esp], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
add esp, 0xfffffff4
mov dword [esp], 0
mov edx, dword [ebp - 0xd8]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x104
call eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xd8]
mov ecx, eax
call fcn.0050358c
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
test eax, eax
je 0x50391f
push eax
mov eax, dword [ebp - 0xd8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
call eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 0x100], al
movzx eax, byte [ebp - 0x100]
movzx eax, al
mov edx, dword [ebp - 0xbc]
movzx edx, byte [edx]
movzx edx, dl
cmp eax, edx
je 0x50387e
movzx eax, byte [ebp - 0x100]
movzx eax, al
mov edx, 1
add edx, dword [ebp - 0xbc]
movzx edx, byte [edx]
movzx edx, dl
cmp eax, edx
je 0x50387e
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x7c], eax
add esp, 0xfffffff0
mov dword [esp], 0
mov eax, dword [ebp - 0x80]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x10
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
mov dword [ebp - 0x78], eax
push eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
mov eax, dword [ebp - 0xd8]
mov ecx, eax
call fcn.005035f7
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x74], eax
mov eax, 4
add eax, dword [ebp - 0xbc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx]
cmp eax, edx
je 0x50391f
mov eax, dword [ebp - 0x74]
mov edx, 4
add edx, dword [ebp - 0xbc]
mov edx, dword [edx]
cmp eax, edx
je 0x50391f
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], eax
add esp, 0xfffffff0
mov dword [esp], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x10
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
mov dword [ebp - 0x44], eax
push eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 4
mov eax, 0x20a
add eax, dword [ebp - 0xd8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xa4], eax
push eax
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x98], eax
add esp, 0xfffffff8
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
mov eax, dword [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x88], eax
add esp, 0xfffffff8
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x6c], eax
add esp, 0xfffffff8
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x8c]
add esp, 0xffffffec
mov edx, dword [ebp - 0x54]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x503c39
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x70]
add esp, 0xffffffe8
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x503c39
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x64]
add esp, 0xfffffff0
mov edx, dword [ebp - 0x5c]
mov dword [esp], edx
mov edx, dword [ebp - 0xb4]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 8], edx
lea edx, [ebp - 0x58]
mov dword [esp + 0xc], edx
call eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x503c39
mov eax, dword [ebp - 0x58]
test eax, eax
jbe 0x503c39
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xac]
cmp eax, edx
je 0x503c39
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
cmp eax, 0x20
jge 0x503bc3
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add edx, dword [eax]
mov eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0xb4]
mov dword [eax], edx
mov eax, 4
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb0], eax
jmp 0x503b7d
add esp, 0xfffffff8
mov eax, dword [ebp - 0xe8]
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x503c39
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x84]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xa8]
add esp, 0xfffffff0
lea edx, [ebp - 0xe4]
mov dword [esp], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
add esp, 0xfffffff0
mov dword [esp], 0
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x10
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
mov dword [ebp - 0x38], eax
push eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
nop
nop
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + esi*4]
add ebp, 4
mov dword [esp + 0x10], eax
imul dword [ebp - 4]
mov dword [esp + 0x28], eax
lea eax, [esi + 1]
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, dword [edi + 4]
lea esi, [ecx + eax*4]
sub ebp, 4
mov dword [esp + 0x18], eax
lea ebx, [esi + edx*4 - 8]
je 0x503da9
dec ebp
je 0x503d70
mov edx, dword [edi + 0x10]
mov ebp, edx
dec edx
test ebp, ebp
je 0x503d38
mov eax, dword [esp + 0x14]
sub eax, esi
inc edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx]
cdq
mov ecx, eax
mov eax, dword [esi]
mov ebp, edx
cdq
add ecx, eax
adc ebp, edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + esi]
cdq
push edx
push eax
push ebp
push ecx
call fcn.00558720
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x14]
adc ebp, edx
sub ebx, 4
add esi, 4
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
jne 0x503cec
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp eax, edx
jne 0x503d49
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x10]
sub eax, ebx
dec eax
jns 0x503d56
add eax, edx
lea esi, [edx + eax]
mov edx, dword [esp + 0x34]
mov dword [ecx + esi*4], edx
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*4], edx
mov ecx, 0x10
jmp 0x503e63
cmp eax, edx
mov dword [edi + 0x18], eax
jne 0x503d7e
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x10]
sub eax, ebx
dec eax
jns 0x503d8b
add eax, edx
lea esi, [edx + eax]
mov edx, dword [esp + 0x34]
mov dword [ecx + esi*4], edx
mov ecx, dword [edi + 0xc]
pop edi
pop esi
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x20
ret 4
mov edx, dword [edi + 0x10]
mov ebp, edx
dec edx
test ebp, ebp
je 0x503e30
mov eax, dword [esp + 0x14]
sub eax, esi
inc edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx]
cdq
mov ecx, eax
mov eax, dword [esi]
mov ebp, edx
mov dword [esp + 0x20], ecx
cdq
mov ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, edx
mov eax, dword [eax + esi]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
cdq
sbb ecx, ebp
push edx
push eax
push ecx
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00558720
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x14]
adc ebp, edx
sub ebx, 4
add esi, 4
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
jne 0x503dc2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp eax, edx
jne 0x503e41
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x10]
sub eax, ebx
dec eax
jns 0x503e4e
add eax, edx
lea esi, [edx + eax]
mov edx, dword [esp + 0x34]
mov dword [ecx + esi*4], edx
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*4], edx
mov ecx, 0xf
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
call fcn.005574d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4