Function at 0x403cb5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x40]
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
cmp edi, ebx
jne 0x403cf7
push 0xffffffffffffff9a
pop eax
jmp 0x40412e
cmp dword [ebp + 0x28], ebx
je 0x403d02
cmp dword [ebp + 0x28], 8
jne 0x403cef
cmp dword [edi + 0x38], 1
jne 0x403d17
push edi
call fcn.00403b4f
pop ecx
cmp eax, ebx
jne 0x40412e
cmp dword [ebp - 0x1c], ebx
jne 0x403d23
mov dword [ebp - 0x1c], 0x56b348
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x403d2f
mov dword [ebp - 0x20], ebx
jmp 0x403d3e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403d32
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403d44
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp edx, ebx
jne 0x403d5f
mov dword [edi + 0x100a4], ebx
jmp 0x403d71
mov eax, dword [edx + 0x18]
cmp eax, ebx
jne 0x403d6b
call fcn.0040229e
mov dword [edi + 0x100a4], eax
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x4c]
mov dword [edi + 0x98], eax
cmp ecx, 8
je 0x403d87
cmp ecx, 9
jne 0x403d90
or eax, 2
mov dword [edi + 0x98], eax
cmp ecx, 2
jne 0x403d9c
or dword [edi + 0x98], 4
cmp ecx, 1
jne 0x403da8
or dword [edi + 0x98], 6
cmp dword [ebp - 0x28], ebx
je 0x403db4
or dword [edi + 0x98], 1
mov eax, dword [ebp + 0x28]
push dword [edi + 0x2c]
mov dword [edi + 0x9c], eax
mov eax, dword [ebp + 0x30]
push edi
mov dword [edi + 0x100a8], ebx
mov dword [edi + 0x100ac], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0xa0], eax
call fcn.00401cf0
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0x18]
add eax, esi
lea eax, [eax + ecx + 0x2e]
mov dword [edi + 0x90], eax
add eax, 0x20
push eax
mov dword [edi + 0x84], edx
mov dword [edi + 0x94], 0x20
call fcn.004b4951
push ebx
push 0x2014b50
mov dword [edi + 0x8c], esi
push 4
pop esi
mov edx, eax
mov dword [edi + 0x88], eax
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp + 0x48]
add edx, esi
push 2
pop esi
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push 0x14
add edx, 6
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [edi + 0x98]
add edx, 8
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [edi + 0x9c]
add edx, 0xa
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [edi + 0x100a4]
add edx, 0xc
push 4
pop esi
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push ebx
add edx, 0x10
call fcn.00402261
mov edx, dword [edi + 0x88]
add esp, 0x44
push ebx
push ebx
add edx, 0x14
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push ebx
add edx, 0x18
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp - 0x18]
add edx, 0x1c
push 2
pop esi
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp - 0x24]
add edx, 0x1e
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push dword [ebp - 0x20]
add edx, 0x20
call fcn.00402261
mov edx, dword [edi + 0x88]
push ebx
push ebx
add edx, 0x22
call fcn.00402261
mov edx, dword [edi + 0x88]
mov eax, dword [ebp - 0x14]
add esp, 0x30
add edx, 0x24
push ebx
cmp eax, ebx
jne 0x403f31
push ebx
call fcn.00402261
pop ecx
pop ecx
push ebx
push ebx
jmp 0x403f45
push dword [eax + 0x1c]
push 2
pop esi
call fcn.00402261
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
push ebx
push dword [eax + 0x20]
mov edx, dword [edi + 0x88]
push 4
pop esi
add edx, 0x26
call fcn.00402261
pop ecx
pop ecx
cmp dword [edi + 0x84], ebx
ja 0x403f69
cmp dword [edi + 0x80], 0xffffffff
jb 0x403f6e
push ebx
push 0xffffffffffffffff
jmp 0x403f84
mov eax, dword [edi + 0x80]
xor ecx, ecx
sub eax, dword [edi + 0x100f0]
sbb ecx, dword [edi + 0x100f4]
push ecx
push eax
mov edx, dword [edi + 0x88]
push 4
pop esi
add edx, 0x2a
call fcn.00402261
pop ecx
xor eax, eax
pop ecx
cmp dword [ebp - 0x18], ebx
jbe 0x403fb4
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx + eax]
mov ecx, dword [edi + 0x88]
mov byte [eax + ecx + 0x2e], dl
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x403f9e
xor eax, eax
cmp dword [ebp - 0x24], ebx
jbe 0x403fdc
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x1c]
mov edx, dword [edi + 0x88]
add ecx, eax
mov dword [ebp - 0x14], ebx
mov bl, byte [eax + esi]
inc eax
mov byte [ecx + edx + 0x2e], bl
mov ebx, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jb 0x403fbb
xor eax, eax
cmp dword [ebp - 0x20], ebx
jbe 0x404007
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 0x24]
mov edx, dword [edi + 0x88]
add ecx, eax
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov bl, byte [eax + esi]
inc eax
mov byte [ecx + edx + 0x2e], bl
mov ebx, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x403fe3
cmp dword [edi + 0x88], ebx
jne 0x404016
push 0xffffffffffffff98
jmp 0x403cf1
push dword [ebp - 0x2c]
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x18]
mov dword [edi + 0x100b0], eax
push dword [ebp - 0x1c]
mov dword [edi + 0x100c0], ebx
push edi
mov dword [edi + 0x100c4], ebx
mov dword [edi + 0x100c8], ebx
mov dword [edi + 0x100cc], ebx
mov dword [edi + 0x100b8], ebx
mov dword [edi + 0x100bc], ebx
call fcn.00402f94
mov esi, eax
add esp, 0x10
lea eax, [edi + 0xa4]
mov dword [edi + 0x44], ebx
mov dword [edi + 0x50], 0x10000
mov dword [edi + 0x4c], eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x6c], ebx
cmp esi, ebx
jne 0x4040c7
cmp dword [edi + 0x9c], 8
jne 0x4040c7
cmp dword [edi + 0xa0], ebx
jne 0x4040c7
cmp dword [ebp + 0x34], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
jle 0x404099
neg dword [ebp + 0x34]
push 0x38
push 0x56b34c
push dword [ebp + 0x3c]
lea eax, [edi + 0x40]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push 8
push dword [ebp + 0x2c]
push eax
call fcn.004060ea
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x4040c7
mov dword [edi + 0x78], 8
mov dword [edi + 0x100e0], ebx
cmp esi, ebx
jne 0x40412c
cmp dword [ebp - 0x28], ebx
je 0x404125
mov dword [edi + 0x100ac], 1
call fcn.004063af
push dword [ebp + 0x44]
mov ecx, dword [ebp - 0x28]
push eax
mov dword [edi + 0x100dc], eax
lea eax, [ebp - 0x10]
push 0xc
lea edx, [edi + 0x100d0]
push eax
call fcn.00401fda
mov ebx, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x2c]
mov dword [edi + 0x100e0], ebx
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x20
cmp eax, ebx
je 0x404125
or esi, 0xffffffff
jmp 0x40412c
mov dword [edi + 0x38], 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048358b
leave
ret