Function at 0x407260
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x421c9b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
xor edi, edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 1
sub ecx, ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, dword [ebp + 0xc]
jge 0x4073e7
mov edx, dword [ebp - 0x94]
mov bl, byte [edx + ecx]
xor bl, 0xcc
lea ecx, [ebp - 0x85]
mov byte [ebp - 0x85], bl
cmp ecx, eax
jae 0x407377
push ecx
pop edx
cmp edi, edx
ja 0x407377
mov ebx, ecx
sub ebx, edi
cmp eax, esi
jne 0x40735b
mov ecx, eax
sub ecx, edi
cmp ecx, 0xfffffffe
jbe 0x40731b
push 0x426608
call fcn.0040f915
mov edx, esi
inc ecx
sub edx, edi
cmp ecx, edx
jbe 0x40735b
push edx
pop eax
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x407335
sub eax, eax
jmp 0x407337
add eax, edx
cmp eax, ecx
jae 0x40733d
push ecx
pop eax
push eax
lea esi, [ebp - 0xac]
call fcn.004076b0
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xac]
test eax, eax
je 0x4073d4
mov cl, byte [edi + ebx]
mov byte [eax], cl
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0xa8], eax
inc ecx
jmp 0x4072cf
cmp eax, esi
jne 0x4073ce
mov ecx, eax
sub ecx, edi
cmp ecx, 0xfffffffe
jbe 0x40738e
push 0x426608
call fcn.0040f915
push esi
pop edx
inc ecx
sub edx, edi
cmp ecx, edx
jbe 0x4073ce
push edx
pop eax
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x4073a8
sub eax, eax
jmp 0x4073aa
add eax, edx
cmp eax, ecx
jae 0x4073b0
mov eax, ecx
push eax
lea esi, [ebp - 0xac]
call fcn.004076b0
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xac]
test eax, eax
je 0x4073d4
mov byte [eax], bl
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0xa8], eax
inc ecx
jmp 0x4072cf
push 0x6c
lea edx, [ebp - 0x80]
push 0
push edx
mov dword [ebp - 0x84], 0
call fcn.00412510
sub ebx, ebx
push 1
pushal
popal
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
add esp, 0xc
mov eax, edi
lea esi, [ebp - 0x84]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.004091e0
cmp eax, ebx
jne 0x407576
mov eax, dword [edi + 9]
mov esi, dword [edi + 5]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], eax
cmp eax, ebx
jl 0x40754c
jg 0x407456
cmp esi, ebx
jbe 0x40754c
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 4]
mov byte [ebp - 0x85], bl
mov ebx, dword [ecx]
cmp ebx, eax
je 0x40748d
mov esi, eax
sub esi, eax
push esi
push eax
push ebx
call fcn.00410da0
add esp, 0xc
add esi, ebx
mov ebx, dword [ebp - 0x90]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x98]
jmp 0x40748f
push ecx
pop ebx
mov eax, dword [ebx]
lea ecx, [ebp - 0x85]
push ecx
push eax
push ebx
mov eax, esi
call fcn.00407750
mov ecx, dword [ebx]
test ecx, ecx
je 0x40754a
mov eax, dword [ebx + 4]
sub eax, ecx
sub edx, edx
cmp eax, esi
jne 0x40754a
cmp edx, dword [ebp - 0x94]
jne 0x40754a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
add edx, 0xfffffff3
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0x94]
push edx
lea eax, [edi + 0xd]
push eax
lea edx, [ebp - 0x90]
push edx
push ecx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], 0
call fcn.00408e00
add esp, 0x14
test eax, eax
jne 0x407523
push 1
pop eax
nop
nop
cmp dword [ebp - 0x8c], eax
jne 0x407523
mov dword [ebp - 0x9c], eax
jmp 0x40754a
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x94], ecx
cmp ecx, eax
je 0x40754a
push eax
pop esi
sub esi, eax
push esi
push eax
push ecx
call fcn.00410da0
add esp, 0xc
add esi, dword [ebp - 0x94]
mov dword [ebx + 4], esi
sub ebx, ebx
mov ecx, dword [ebp - 0x74]
push ecx
push 0x46078c
call dword [0x460790]
mov edx, dword [ebp - 0x70]
add esp, 8
push edx
push 0x46078c
mov dword [ebp - 0x74], ebx
call dword [0x460790]
add esp, 8
mov dword [ebp - 0x70], ebx
cmp edi, ebx
je 0x407583
push edi
call fcn.004106bc
add esp, 4
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004106c7
mov esp, ebp
pop ebp
ret