Function at 0x40e110
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x540b97
mov eax, dword fs:[0]
push eax
sub esp, 0x598
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x590], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x5ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5bc]
mov edi, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], eax
call fcn.0040e9a0
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], cx
lea esi, [esp + 0xe0]
mov dword [esp + 0x5b4], ebx
call fcn.0040eeb0
mov esi, dword [0x5ab7c4]
mov eax, dword [0x5ab7c8]
cmp esi, eax
jbe 0x40e1bb
call fcn.00481387
mov eax, dword [0x5ab7c8]
mov ebp, dword [0x5ab7b8]
mov dword [esp + 0x24], esi
mov esi, eax
cmp dword [0x5ab7c4], eax
jbe 0x40e1d4
call fcn.00481387
cmp ebp, ebx
je 0x40e1e0
cmp ebp, dword [0x5ab7b8]
je 0x40e1e5
call fcn.00481387
cmp dword [esp + 0x24], esi
je 0x40e709
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e1f4
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xe8]
call fcn.00408820
push 1
push 0x57d450
lea ecx, [esp + 0xe8]
call fcn.00408700
cmp ebp, ebx
jne 0x40e485
call fcn.00481387
xor eax, eax
mov esi, dword [esp + 0x24]
cmp esi, dword [eax + 0x10]
jb 0x40e241
call fcn.00481387
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0xec]
call fcn.004085f0
cmp dword [esp + 0xf8], 8
mov eax, dword [esp + 0xe4]
jae 0x40e269
lea eax, [esp + 0xe4]
push eax
lea edx, [esp + 0x50]
push edx
call fcn.0040ef60
mov byte [esp + 0x5b4], 1
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 4]
test byte [esp + eax + 0x54], 6
jne 0x40e49a
push 0x3ff
lea ecx, [esp + 0x1a9]
push ebx
push ecx
mov byte [esp + 0x1a8], bl
mov dword [esp + 0x154], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x140], 0x67452301
mov dword [esp + 0x144], 0xefcdab89
mov dword [esp + 0x148], 0x98badcfe
mov dword [esp + 0x14c], 0x10325476
mov byte [esp + 0x1b0], bl
call fcn.004804c0
mov edx, dword [esi + 4]
add esp, 0xc
test byte [esp + edx + 0x54], 1
jne 0x40e367
mov edi, dword [esp + 0x14]
lea ebx, [ebx]
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040ffb0
mov esi, dword [esp + 0x50]
cmp esi, ebx
jle 0x40e330
lea edx, [esp + 0x1a4]
push edx
mov eax, esi
lea ecx, [esp + 0x138]
call fcn.00414cb0
mov eax, esi
cdq
add edi, eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x1c], ebx
je 0x40e355
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
push edi
push ecx
push edx
push ebx
push ebx
call dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x54], 1
je 0x40e300
mov dword [esp + 0x14], edi
lea esi, [esp + 0x54]
call fcn.00410450
test eax, eax
jne 0x40e395
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x54]
lea ecx, [esp + ecx + 0x4c]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40e38e
or eax, 4
push ebx
push eax
call fcn.00401cd0
lea edi, [esp + 0xfc]
lea eax, [esp + 0x134]
call fcn.00415620
cmp dword [esp + 0x114], 0x10
mov esi, dword [esp + 0x100]
jae 0x40e3c0
lea esi, [esp + 0x100]
cmp ebp, ebx
jne 0x40e48d
call fcn.00481387
xor eax, eax
mov edi, dword [esp + 0x24]
cmp edi, dword [eax + 0x10]
jb 0x40e3dd
call fcn.00481387
cmp dword [edi + 0x54], 0x10
lea eax, [edi + 0x40]
jb 0x40e3e8
mov eax, dword [eax]
push esi
push eax
call fcn.0048618c
add esp, 8
cmp eax, ebx
jne 0x40e4e9
cmp dword [esp + 0x114], 0x10
jb 0x40e414
mov eax, dword [esp + 0x100]
push eax
call fcn.0044687d
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
mov byte [esp + 0x5b4], bl
call fcn.0040f070
lea ecx, [esp + 0xa4]
push ecx
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.0047f0db
add esp, 4
cmp ebp, ebx
jne 0x40e495
call fcn.00481387
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40e470
call fcn.00481387
mov eax, dword [0x5ab7c8]
add edi, 0x58
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x40]
jmp 0x40e1c5
mov eax, dword [ebp]
jmp 0x40e233
mov eax, dword [ebp]
jmp 0x40e3cf
mov eax, dword [ebp]
jmp 0x40e466
lea ecx, [esp + 0xa4]
mov byte [esp + 0x5b4], bl
call fcn.0040f070
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.0047f0db
add esp, 4
cmp dword [esp + 0xf8], 8
jb 0x40e4e2
mov eax, dword [esp + 0xe4]
push eax
call fcn.0044687d
add esp, 4
xor al, al
jmp 0x40e725
xor ecx, ecx
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], cx
lea esi, [esp + 0x118]
mov byte [esp + 0x5b4], 3
call fcn.0040eeb0
cmp ebp, ebx
jne 0x40e53b
call fcn.00481387
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40e52e
call fcn.00481387
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x40e540
mov eax, dword [esi]
jmp 0x40e542
mov eax, dword [ebp]
jmp 0x40e524
mov eax, esi
push eax
push 0x57dba8
call fcn.00480d6f
add esp, 8
cmp eax, ebx
jle 0x40e627
lea edx, [esp + 0x28]
lea edi, [eax + 1]
push edx
call fcn.00410da0
mov byte [esp + 0x5b4], 4
cmp ebp, ebx
jne 0x40e590
call fcn.00481387
xor eax, eax
mov edi, dword [esp + 0x24]
cmp edi, dword [eax + 0x10]
jb 0x40e586
call fcn.00481387
cmp dword [edi + 0x18], 8
jb 0x40e595
mov edi, dword [esi]
jmp 0x40e597
mov eax, dword [ebp]
jmp 0x40e578
mov edi, esi
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x34]
sar esi, 1
jne 0x40e5a8
call fcn.00481387
mov eax, dword [esp + 0x34]
push edi
push 0x57dba8
push esi
push eax
call fcn.00480d51
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
sub ecx, edx
add esp, 0x10
sar ecx, 1
jne 0x40e5d3
call fcn.00481387
mov edx, dword [esp + 0x34]
mov eax, edx
lea esi, [eax + 2]
jmp 0x40e5e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e5e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x120]
call fcn.00408820
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40e60e
push eax
call fcn.0044687d
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0044687d
add esp, 4
mov eax, dword [esp + 0x11c]
mov esi, 8
cmp dword [esp + 0x130], esi
jae 0x40e643
lea eax, [esp + 0x11c]
push 1
push str.ERROR
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x130], esi
jb 0x40e66b
mov eax, dword [esp + 0x11c]
push eax
call fcn.0044687d
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x114], 0x10
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], cx
jb 0x40e6a1
mov edx, dword [esp + 0x100]
push edx
call fcn.0044687d
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
mov byte [esp + 0x5b4], bl
call fcn.0040f070
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.0047f0db
add esp, 4
cmp dword [esp + 0xf8], esi
jb 0x40e4e2
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.0044687d
add esp, 4
xor al, al
jmp 0x40e725
cmp dword [esp + 0xf8], 8
jb 0x40e723
mov edx, dword [esp + 0xe4]
push edx
call fcn.0044687d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x5ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x590]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x5a4
ret 4