Function at 0x467620
Capabilities:
Terminate process

Disassembly:
sub esp, 0x34
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x208]
push edi
shl eax, 3
push eax
mov dword [esp + 0x24], ebx
call fcn.00451b40
mov ebp, dword [0x480f90]
mov dword [esp + 0x24], eax
mov eax, dword [0x480f8c]
mov byte [esp + 0x12], 0
cmp ebp, eax
mov dword [esp + 0x18], 0
mov byte [esp + 0x13], 0
jae 0x467827
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x34]
mov ecx, eax
and eax, 0xffffff
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov ebx, eax
xor eax, edi
and eax, 0xffffff
xor edi, eax
mov dword [esp + 0x34], edi
shl edi, 8
shr ecx, 0x18
shr ebx, 0x18
sar edi, 8
cmp word [ebp], 0xff
mov byte [esp + 0x3c], bl
sete al
add eax, 7
mov byte [esp + 0x2c], al
mov al, byte [esp + 0x12]
cmp al, cl
je 0x4676e9
mov esi, dword [esp + 0x20]
xor ax, ax
mov al, cl
mov byte [esp + 0x12], cl
lea edx, [esi + 0x1c0]
push edx
push eax
call fcn.0040ed80
mov eax, dword [eax + 0x18]
mov ecx, dword [esi + 0x214]
sub eax, ecx
xor edx, edx
div dword [esi + 0x64]
mov dword [esp + 0x28], 0xffff
mov dword [esp + 0x38], eax
jmp 0x4676ed
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x64]
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
xor edx, edx
div esi
test cl, cl
je 0x467701
inc eax
mov edx, dword [esp + 0x28]
movsx ecx, ax
and edx, 0xffff
cmp edx, ecx
je 0x467733
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
and eax, 0xffff
mov edx, dword [esp + 0x24]
add eax, ecx
imul ecx, esi
lea eax, [edx + eax*8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
push ecx
push edi
push edx
push eax
call fcn.004665f0
mov esi, eax
test esi, esi
jne 0x46779e
push 0x14
call fcn.00451b20
mov dl, byte [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0x20
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], esi
mov byte [esi + 4], dl
mov byte [esi + 5], bl
mov dword [esi + 8], edi
mov byte [esi + 0xe], 0
mov word [esi + 0xc], 0x10
call fcn.00451b20
mov ebx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10000
mov dword [esi + 0x10], eax
sbb eax, eax
and al, 0xfe
add eax, 0xb
add ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4677dd
mov cl, byte [esi + 0xe]
cmp cl, 1
jne 0x4677aa
dec dword [esp + 0x18]
mov edi, dword [esp + 0x18]
mov ax, word [esi + 0xc]
movzx cx, cl
add edi, 2
cmp cx, ax
mov dword [esp + 0x18], edi
jb 0x4677dd
mov edx, dword [esi + 0x10]
add eax, 0x10
mov word [esi + 0xc], ax
and eax, 0xffff
shl eax, 1
push eax
push edx
call fcn.00451b70
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov edi, dword [esi + 0x10]
xor ebx, ebx
mov bl, byte [esi + 0xe]
mov edx, ecx
sub edx, eax
add ecx, 4
mov word [edi + ebx*2], dx
mov bl, byte [esi + 0xe]
mov edx, dword [esp + 0x20]
inc bl
mov byte [esi + 0xe], bl
add eax, dword [edx + 0x64]
cmp ecx, eax
seta al
test al, al
mov byte [esp + 0x13], al
jne 0x467817
add ebp, 0xc
cmp ebp, dword [0x480f8c]
jb 0x467665
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push eax
call fcn.00451b20
mov ebp, dword [0x481184]
mov dword [esp + 0x1c], eax
mov esi, eax
mov al, byte [0x481194]
test al, al
je 0x46784b
call fcn.0040cbc0
mov ecx, dword [0x469524]
mov eax, dword [ecx + ebp*4]
test byte [eax + 4], 8
je 0x467863
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x30], edx
jmp 0x46786d
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov eax, dword [ebx + 0x204]
mov ecx, dword [0x481184]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
push edx
push 0
push eax
push ecx
call fcn.0040bd40
mov ecx, dword [ebx + 0x208]
mov edx, dword [ebx + 0x204]
mov edi, dword [esp + 0x24]
mov eax, 1
cmp ecx, eax
mov dword [ebx + 0x20c], edx
mov dword [esp + 0x18], eax
jb 0x4679c4
mov ecx, dword [esp + 0x1c]
mov eax, esi
sub eax, ecx
mov dword [edi + 4], eax
mov ebp, dword [0x481184]
mov dword [esp + 0x14], eax
mov al, byte [0x481194]
test al, al
je 0x4678d9
call fcn.0040cbc0
mov eax, dword [0x469524]
push 4
mov eax, dword [eax + ebp*4]
test byte [eax + 4], 8
je 0x4678f6
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0040c870
jmp 0x467901
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0040bee0
mov eax, dword [edi]
test eax, eax
je 0x4679a5
cmp byte [eax + 0xe], 1
jbe 0x467915
or byte [eax + 4], 0x20
cmp dword [eax + 8], 0x10000
setae dl
xor cl, cl
test dl, dl
je 0x467927
mov cl, 0x10
mov bl, byte [eax + 4]
mov byte [esi], bl
inc esi
mov byte [esi], cl
mov cl, byte [eax + 0xe]
inc esi
cmp cl, 1
jne 0x467947
mov ecx, dword [eax + 0x10]
add esi, 2
mov cx, word [ecx]
mov word [esi - 2], cx
jmp 0x46794a
mov byte [esi], cl
inc esi
mov cl, byte [eax + 5]
mov byte [esi], cl
inc esi
test dl, dl
je 0x46795e
mov edx, dword [eax + 8]
mov dword [esi], edx
add esi, 4
jmp 0x467968
mov cx, word [eax + 8]
mov word [esi], cx
add esi, 2
mov dl, byte [eax + 0xe]
cmp dl, 1
jbe 0x467997
xor ecx, ecx
test dl, dl
jbe 0x467997
mov ebx, dword [eax + 0x10]
mov edx, ecx
and edx, 0xffff
add esi, 2
inc ecx
mov dx, word [ebx + edx*2]
mov word [esi - 2], dx
movzx dx, byte [eax + 0xe]
cmp cx, dx
jb 0x467976
mov eax, dword [eax]
test eax, eax
jne 0x46790b
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x208]
inc eax
add edi, 8
mov dword [esp + 0x18], eax
and eax, 0xffff
cmp eax, ecx
jbe 0x4678b6
mov edi, dword [esp + 0x1c]
mov al, byte [0x481194]
sub esi, edi
mov dword [esp + 0x14], esi
mov esi, dword [0x481184]
test al, al
je 0x4679e2
call fcn.0040cbc0
mov eax, dword [0x469524]
push 4
mov eax, dword [eax + esi*4]
test byte [eax + 4], 8
je 0x4679ff
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0040c870
jmp 0x467a0a
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0040bee0
mov al, byte [0x481194]
mov esi, dword [0x481184]
test al, al
je 0x467a1e
call fcn.0040cbc0
mov eax, dword [0x469524]
mov eax, dword [eax + esi*4]
test byte [eax + 4], 8
je 0x467a31
mov eax, dword [eax + 0x1c]
jmp 0x467a37
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x58]
mov ebp, dword [sym.imp.MSVCRT.dll_free]
mov dword [ebx + 0x210], eax
add eax, edx
cmp eax, ecx
jbe 0x467a9d
push edi
call ebp
mov al, byte [0x4690c4]
add esp, 4
test al, al
je 0x467a64
call fcn.00415270
mov eax, dword [0x481164]
test eax, eax
je 0x467a84
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
cmp eax, ecx
je 0x467a84
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebx + 0x210]
mov edi, dword [esp + 0x14]
add edx, edi
push edx
call fcn.0044a240
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, byte [0x481194]
mov esi, dword [esp + 0x14]
mov edi, dword [0x481184]
test al, al
je 0x467ab5
call fcn.0040cbc0
mov eax, dword [0x469524]
push esi
mov eax, dword [eax + edi*4]
test byte [eax + 4], 8
je 0x467ad1
mov ecx, dword [esp + 0x20]
push ecx
push eax
call fcn.0040c870
jmp 0x467adc
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.0040bee0
mov al, byte [0x481194]
mov esi, dword [0x481184]
test al, al
je 0x467af0
call fcn.0040cbc0
mov eax, dword [0x469524]
mov eax, dword [eax + esi*4]
test byte [eax + 4], 8
je 0x467b03
mov eax, dword [eax + 0x1c]
jmp 0x467b09
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0x40]
mov dword [ebx + 0x204], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x481184]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x50], 0
call fcn.0040bd40
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x208]
mov dword [esp + 0x20], eax
mov eax, 1
add esp, 4
cmp ecx, eax
mov dword [esp + 0x18], eax
jb 0x467b95
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx]
test esi, esi
je 0x467b72
mov edx, dword [esi + 0x10]
mov edi, dword [esi]
push edx
call ebp
push esi
call ebp
add esp, 8
mov esi, edi
test edi, edi
jne 0x467b5e
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x208]
inc eax
mov dword [esp + 0x18], eax
and eax, 0xffff
add esi, 8
cmp eax, ecx
mov dword [esp + 0x1c], esi
jbe 0x467b54
mov eax, dword [esp + 0x24]
push eax
call ebp
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret