Function at 0x4517f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dd2cf
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov eax, dword [edi + 0x1a8]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x190]
push ecx
mov ecx, esi
mov dword [esp + 0x38], edi
call fcn.0044d4e0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x18]
mov dword [eax + 8], eax
call fcn.00481b70
push str.InterfaceAddons_
add edi, 0x20
lea edx, [esp + 0xec]
push edi
push edx
mov dword [esp + 0x374], ebx
call fcn.0043bbd0
push 0x5f16a8
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0xc4]
push ecx
mov byte [esp + 0x380], 1
call fcn.0043bbd0
add esp, 0x18
lea ecx, [esp + 0x17]
mov byte [esp + 0x368], 2
call fcn.004d15a0
mov eax, dword [esp + 0xb4]
mov esi, 8
mov byte [esp + 0x368], 3
cmp dword [esp + 0xc8], esi
jae 0x4518e7
lea eax, [esp + 0xb4]
lea edx, [esp + 0x104]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
je 0x451dfe
jmp 0x451917
mov esi, 8
xor ebx, ebx
cmp word [esp + 0x130], 0x2e
je 0x451dd5
test byte [esp + 0x104], 0x10
je 0x451dd5
lea eax, [esp + 0x130]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x451940
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0xb8]
call fcn.00439ce0
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0xd4]
push eax
call fcn.0043bca0
add esp, 0xc
push esi
push ebx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0xbc]
mov byte [esp + 0x374], 4
call fcn.0043b3d0
mov edx, dword [eax + 0x14]
or dword [esp + 0x30], 1
push esi
push str.Blizzard
push edx
push ebx
mov ecx, eax
mov byte [esp + 0x378], 5
call fcn.004374c0
test eax, eax
je 0x451a2f
mov eax, dword [esp + 0xc4]
push 5
push str.MiDKP
push eax
push ebx
lea ecx, [esp + 0xc0]
call fcn.004374c0
test eax, eax
je 0x451a2f
mov ecx, dword [esp + 0xc4]
push 0xc
push str.RelationInfo
push ecx
push ebx
lea ecx, [esp + 0xc0]
call fcn.004374c0
test eax, eax
je 0x451a2f
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], esi
jae 0x451a19
lea eax, [esp + 0xd0]
push str.X_WoWBox_Ver:
push eax
call fcn.00453ab0
add esp, 8
test eax, eax
jne 0x451a2f
xor bl, bl
jmp 0x451a31
mov bl, 1
test byte [esp + 0x30], 1
mov dword [esp + 0x368], 4
je 0x451a5b
and dword [esp + 0x30], 0xfffffffe
cmp dword [esp + 0x68], esi
jb 0x451a5b
mov edx, dword [esp + 0x54]
push edx
call fcn.00506f70
add esp, 4
test bl, bl
je 0x451a81
mov byte [esp + 0x368], 3
cmp dword [esp + 0xe4], esi
jb 0x451dd5
mov eax, dword [esp + 0xd0]
push eax
jmp 0x451dcd
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebx, eax
cmp edi, eax
jbe 0x451a9c
call fcn.00579468
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp edi, eax
jbe 0x451aa9
call fcn.00579468
mov ecx, dword [esp + 0x18]
push ebx
push esi
push edi
push ecx
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x2c]
call fcn.00446240
lea eax, [esp + 0x18]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x5f1164
lea edx, [esp + 0xd4]
push edx
push ecx
call fcn.0043bbd0
mov esi, dword [esp + 0x60]
add esp, 0xc
mov ecx, esi
call fcn.0044cc90
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x44]
add esi, 0x1f8
push ecx
mov ecx, esi
call fcn.0043b410
cmp dword [esp + 0x40], 0
mov edi, dword [esi + 0x18]
mov esi, dword [esi]
je 0x451b1d
cmp dword [esp + 0x40], esi
je 0x451b22
call fcn.00579468
mov ebx, dword [esp + 0x44]
cmp ebx, edi
je 0x451d04
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x451c98
call fcn.00579468
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x451b4b
call fcn.00579468
mov esi, dword [ebx + 0x34]
cmp esi, dword [ebx + 0x38]
jbe 0x451b58
call fcn.00579468
mov edi, dword [ebx + 0x28]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x451c9f
call fcn.00579468
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x451b80
call fcn.00579468
mov esi, dword [ebx + 0x38]
cmp dword [ebx + 0x34], esi
jbe 0x451b8d
call fcn.00579468
mov eax, dword [ebx + 0x28]
test edi, edi
je 0x451b98
cmp edi, eax
je 0x451b9d
call fcn.00579468
cmp dword [esp + 0x3c], esi
je 0x451cb1
push 0x5f1164
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.0043bbd0
add esp, 0xc
mov esi, eax
mov byte [esp + 0x368], 6
test edi, edi
jne 0x451ca6
call fcn.00579468
xor eax, eax
mov edi, dword [esp + 0x3c]
cmp edi, dword [eax + 0x10]
jb 0x451be8
call fcn.00579468
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
push esi
push ecx
call fcn.0043bca0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.00439e40
mov esi, dword [eax]
mov edi, dword [eax + 4]
add esp, 0x24
cmp dword [esp + 0x68], 8
mov byte [esp + 0x368], 4
jb 0x451c32
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00506f70
add esp, 4
mov eax, dword [esp + 0x28]
mov ebx, eax
cmp dword [esp + 0x24], eax
jbe 0x451c43
call fcn.00579468
test esi, esi
je 0x451c4d
cmp esi, dword [esp + 0x18]
je 0x451c52
call fcn.00579468
cmp edi, ebx
je 0x451c69
push edi
push esi
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
call fcn.00445bc0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x451cad
call fcn.00579468
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x451c86
call fcn.00579468
add dword [esp + 0x3c], 0x20
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
jmp 0x451b63
mov eax, dword [eax]
jmp 0x451b41
mov eax, dword [eax]
jmp 0x451b76
mov eax, dword [edi]
jmp 0x451bda
mov eax, dword [eax]
jmp 0x451c78
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
call fcn.0043de70
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebx, ecx
cmp eax, ecx
jbe 0x451cda
call fcn.00579468
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edi, eax
cmp eax, ecx
jbe 0x451ce9
call fcn.00579468
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00446240
jmp 0x451d51
mov eax, dword [esp + 0x28]
mov edx, eax
sub edx, dword [esp + 0x24]
sar edx, 5
test edx, edx
jbe 0x451d55
cmp dword [esp + 0xe4], 8
mov eax, dword [esp + 0xd0]
jae 0x451d2d
lea eax, [esp + 0xd0]
push eax
call fcn.00453b50
add esp, 4
test eax, eax
je 0x451d51
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
call fcn.0043de70
lea ecx, [esp + 0x18]
call fcn.00447460
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 5
test eax, eax
jbe 0x451db3
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x58]
call fcn.004476d0
mov ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0xa8]
push eax
add ecx, 0x190
mov byte [esp + 0x370], 7
call fcn.0044b120
lea ecx, [esp + 0x6c]
call fcn.00445b70
cmp dword [esp + 0x68], 8
jb 0x451db3
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00506f70
add esp, 4
cmp dword [esp + 0xe4], 8
mov byte [esp + 0x368], 3
jb 0x451dd5
mov edx, dword [esp + 0xd0]
push edx
call fcn.00506f70
add esp, 4
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x451910
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov esi, 8
xor ebx, ebx
lea ecx, [esp + 0x17]
mov byte [esp + 0x368], 2
call fcn.004679f0
cmp dword [esp + 0xc8], esi
jb 0x451e28
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00506f70
add esp, 4
xor edx, edx
mov edi, 7
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], dx
cmp dword [esp + 0x100], esi
jb 0x451e5e
mov eax, dword [esp + 0xec]
push eax
call fcn.00506f70
add esp, 4
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], cx
cmp eax, ebx
je 0x451ea0
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0043fe70
mov eax, dword [esp + 0x34]
push eax
call fcn.00506f70
add esp, 0x14
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00506f70
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.005792fc
mov esp, ebp
pop ebp
ret