Function at 0x405640
Capabilities:
Contain obfuscated stackstrings
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41bb7e
mov eax, dword fs:[0]
push eax
sub esp, 0xad8
mov eax, dword [0x4224a0]
xor eax, esp
mov dword [esp + 0xad0], eax
push ebx
push esi
push edi
mov eax, dword [0x4224a0]
xor eax, esp
push eax
lea eax, [esp + 0xae8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x1ff
lea ecx, [esp + 0x8e1]
push ebx
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1f], bl
mov byte [esp + 0x8e8], bl
call fcn.00413e90
add esp, 0xc
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xaf0], ebx
lea esi, [esp + 0xf4]
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.00405500
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x4056ea
mov eax, dword [eax]
push 0x41f148
push eax
push str._s_s_
lea edx, [esp + 0x8e8]
call fcn.00402b60
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x40571d
mov edx, dword [esp + 0xf4]
push edx
call fcn.0040aa31
add esp, 4
lea eax, [esp + 0x8d0]
push eax
lea ecx, [esp + 0x8e0]
push 0x200
push ecx
mov dword [esp + 0x8dc], 0x61647075
mov dword [esp + 0x8e0], 0x792e6574
mov word [esp + 0x8e4], 0x7079
mov byte [esp + 0x8e6], 0
call fcn.0040af84
add esp, 0xc
lea edx, [esp + 0x8dc]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00406840
mov byte [esp + 0xaf0], 1
cmp dword [esp + 0x88], ebx
je 0x4058d0
lea edi, [esp + 0x24]
lea ecx, [esp + 0x134]
mov byte [esp + 0x19c], 0
mov dword [esp + 0x148], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x134], 0x67452301
mov dword [esp + 0x138], 0xefcdab89
mov dword [esp + 0x13c], 0x98badcfe
mov dword [esp + 0x140], 0x10325476
call fcn.004083e0
lea edi, [esp + 0xf4]
lea eax, [esp + 0x134]
call fcn.00408f20
mov esi, eax
lea ecx, [esp + 0xd8]
cmp ecx, esi
je 0x405876
cmp dword [esp + 0xec], 0x10
jb 0x405815
mov edx, dword [esp + 0xd8]
push edx
call fcn.0040aa31
add esp, 4
mov edi, 0xf
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], 0
cmp dword [esi + 0x14], 0x10
jae 0x40584e
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0xdc]
push esi
push eax
call fcn.0040a6d0
add esp, 0xc
jmp 0x405859
mov ecx, dword [esi]
mov dword [esp + 0xd8], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0xe8], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0xec], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], 0
mov byte [esp + 0xaf0], 1
cmp dword [esp + 0x108], 0x10
jb 0x405898
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0040aa31
add esp, 4
lea eax, [esp + 0x34]
call fcn.00407980
test eax, eax
jne 0x4058d0
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x30]
lea ecx, [esp + ecx + 0x24]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4058bf
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4058d0
push ebx
call fcn.004042e0
cmp dword [esp + 0xe8], ebx
je 0x4059d4
push 0xc
mov dword [esp + 0xf8], 1
call fcn.0040aa8d
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x405902
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
jmp 0x405904
xor eax, eax
mov dword [esp + 0xfc], eax
lea edi, [esp + 0x118]
mov byte [esp + 0xaf0], 3
call fcn.004044e0
mov byte [esp + 0xaf0], 4
cmp dword [eax + 0x14], 0x10
jb 0x40592f
mov eax, dword [eax]
lea ecx, [esp + 0xf4]
push ecx
mov ecx, eax
call fcn.00403a40
cmp eax, 1
mov edi, 0x10
sete bl
cmp dword [esp + 0x12c], edi
jb 0x405962
mov edx, dword [esp + 0x118]
push edx
call fcn.0040aa31
add esp, 4
mov esi, dword [esp + 0xfc]
test bl, bl
je 0x4059a4
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x4059a4
mov ecx, dword [esp + 0xd8]
cmp dword [esp + 0xec], edi
jae 0x405991
lea ecx, [esp + 0xd8]
push eax
push ecx
call fcn.0040c0f7
add esp, 8
test eax, eax
jne 0x4059a4
mov byte [esp + 0x13], 1
cmp dword [esp + 0xf4], 1
jne 0x4059d4
xor edi, edi
cmp esi, edi
je 0x4059d4
mov eax, dword [esi]
cmp eax, edi
je 0x4059c5
push eax
call fcn.0040b124
add esp, 4
mov dword [esi], edi
push esi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.0040aa31
add esp, 4
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x18], ecx
mov dword [esp + eax + 0x24], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x34]
mov byte [esp + 0xaf0], 5
call fcn.00406950
mov byte [esp + 0xaf0], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x8c]
mov dword [esp + edx + 0x24], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00409cde
add esp, 4
mov dword [esp + 0xaf0], 0xffffffff
cmp dword [esp + 0xec], 0x10
jb 0x405a56
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0040aa31
add esp, 4
cmp byte [esp + 0x13], 0
je 0x405c33
lea edx, [esp + 0x8dc]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00406840
mov dword [esp + 0xaf0], 6
cmp dword [esp + 0x88], 0
je 0x405bc5
push 2
lea esi, [esp + 0x28]
call fcn.00406450
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x30], 6
jne 0x405ad0
mov ecx, dword [esp + eax + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push 1
push 1
push 0
push 0
lea eax, [esp + 0x104]
push eax
call edx
mov eax, dword [esp + 0xfc]
mov edi, dword [esp + 0xf4]
jmp 0x405aeb
mov eax, dword [0x41c31c]
mov edi, dword [0x41c318]
mov dword [esp + 0xf8], eax
xor eax, eax
mov dword [esp + 0x100], eax
add edi, eax
lea esi, [edi + 1]
push esi
call fcn.00409b70
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.00413e90
add esp, 0xc
push 0
lea esi, [esp + 0x28]
call fcn.00406450
push 0
push edi
push ebx
mov ecx, esi
push ecx
call fcn.00406310
lea eax, [esp + 0x34]
call fcn.00407980
test eax, eax
jne 0x405b58
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x30]
lea ecx, [esp + ecx + 0x24]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x405b46
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x405b58
push 0
call fcn.004042e0
lea esi, [esp + 0xd8]
call fcn.00404910
mov byte [esp + 0xaf0], 7
cmp dword [eax + 0x14], 0x10
jb 0x405b74
mov eax, dword [eax]
push eax
push edi
lea eax, [esp + 0x1e4]
push eax
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.00402f80
cmp dword [esp + 0xec], 0x10
mov dword [esp + 0x1c], eax
jb 0x405ba7
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0040aa31
add esp, 4
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x8c]
mov dword [esp + 0x18], edx
mov dword [esp + ecx + 0x24], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x34]
mov dword [esp + 0xaf0], 8
call fcn.00406950
mov dword [esp + 0xaf0], 0xffffffff
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x8c]
mov dword [esp + eax + 0x24], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00409cde
mov esi, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
jmp 0x405ed8
mov dword [esp + 0x18], 0
jmp 0x405c40
push 0xc
mov dword [esp + 0x8d4], 1
call fcn.0040aa8d
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x405c65
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
jmp 0x405c67
xor eax, eax
mov dword [esp + 0x8d8], eax
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0xaf4], 9
call fcn.004046a0
mov byte [esp + 0xaf0], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x405c96
mov eax, dword [eax]
lea ecx, [esp + 0x8d0]
push ecx
mov ecx, eax
call fcn.00403a40
cmp eax, 1
sete bl
mov byte [esp + 0xaf0], 9
cmp dword [esp + 0x12c], 0x10
jb 0x405ccd
mov edx, dword [esp + 0x118]
push edx
call fcn.0040aa31
add esp, 4
mov edi, dword [esp + 0x8d8]
test bl, bl
je 0x405ce9
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x405d48
xor esi, esi
mov dword [esp + 0xaf0], 0xffffffff
cmp dword [esp + 0x8d0], 1
jne 0x405d2b
cmp edi, esi
je 0x405d24
mov eax, dword [edi]
cmp eax, esi
je 0x405d15
push eax
call fcn.0040b124
add esp, 4
mov dword [edi], esi
push edi
mov dword [edi + 8], esi
mov dword [edi + 4], esi
call fcn.0040aa31
add esp, 4
mov dword [esp + 0x8d8], esi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 3
jl 0x405c40
mov esi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x405ed8
lea eax, [esp + 0x8dc]
push eax
lea ecx, [esp + 0x138]
push ecx
call fcn.004072e0
mov byte [esp + 0xaf0], 0xb
cmp dword [esp + 0x18c], 0
je 0x405dc6
push 0
push esi
push ebx
lea edx, [esp + 0x140]
push edx
call fcn.00406120
lea eax, [esp + 0x138]
call fcn.00407980
test eax, eax
jne 0x405dc6
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x140]
lea ecx, [esp + ecx + 0x134]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x405db4
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x405dc6
push 0
call fcn.004042e0
lea esi, [esp + 0xf4]
call fcn.00404910
mov ebx, 0x10
mov byte [esp + 0xaf0], 0xc
cmp dword [eax + 0x14], ebx
jb 0x405de6
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1e4]
push edx
lea edx, [esp + 0x20]
call fcn.00402f80
mov esi, eax
cmp dword [esp + 0x108], ebx
jb 0x405e1c
mov eax, dword [esp + 0xf4]
push eax
call fcn.0040aa31
add esp, 4
mov edx, dword [esp + 0x134]
mov eax, dword [edx + 4]
xor ebx, ebx
lea ecx, [esp + 0x194]
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
mov dword [esp + 0x18], ecx
mov dword [esp + eax + method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x138]
mov byte [esp + 0xaf0], 0xd
call fcn.00406950
mov byte [esp + 0xaf0], 9
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x194]
mov dword [esp + edx + method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00409cde
add esp, 4
mov dword [esp + 0xaf0], 0xffffffff
cmp dword [esp + 0x8d0], 1
jne 0x405ed8
mov eax, dword [edi]
cmp eax, ebx
je 0x405ec9
push eax
call fcn.0040b124
add esp, 4
mov dword [edi], ebx
push edi
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
call fcn.0040aa31
add esp, 4
cmp esi, ebx
je 0x405f9d
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x405f9d
push eax
push esi
call fcn.00409360
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x405f9d
lea esi, [esp + 0xd8]
call fcn.00404980
cmp dword [eax + 0x14], 0x10
jb 0x405f14
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00409510
add esp, 4
cmp dword [esp + 0xec], 0x10
mov esi, eax
jb 0x405f3b
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0040aa31
add esp, 4
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], 0
cmp esi, ebx
je 0x405f9d
lea edx, [esp + 0x118]
push edx
call fcn.004049c0
mov edi, 0x10
mov dword [esp + 0xaf0], 0xe
cmp dword [eax + 0x14], edi
jb 0x405f7d
mov eax, dword [eax]
push ebx
push eax
call esi
add esp, 8
cmp dword [esp + 0x12c], edi
jb 0x405f9d
mov eax, dword [esp + 0x118]
push eax
call fcn.0040aa31
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [eax], 1
cmp dword [eax + 0x20], ebx
je 0x405fc1
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
push ebx
push ebx
push ecx
push edx
call dword [0x41c18c]
call fcn.0040b2b0
mov ecx, dword [esp + 0xae8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xad0]
xor ecx, esp
call fcn.0040a547
mov esp, ebp
pop ebp
ret