Function at 0x4a5fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x57
push 0
push 0
dec ecx
jne 0x4a5fd8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a6860
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b49b8]
mov eax, dword [eax]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4ac]
call fcn.0048adfc
mov edx, 0x4a6878
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x26c]
mov eax, dword [0x4b474c]
mov eax, dword [eax]
call fcn.0048dc84
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x268]
call fcn.00481e00
push dword [ebp - 0x268]
mov eax, dword [0x4b4940]
push dword [eax]
push 0x4a68a0
lea eax, [ebp - 0x264]
mov edx, 3
call fcn.00404c14
mov eax, dword [ebp - 0x264]
call fcn.00404b34
lea edx, [ebp - 0x260]
call fcn.00499b68
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a613f
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00404a9c
mov eax, dword [ebp - 0x270]
mov edx, 0x4a68b0
call fcn.00404c5c
je 0x4a6124
lea eax, [ebp - 0x274]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00404a9c
mov eax, dword [ebp - 0x274]
mov edx, 0x4a68b8
call fcn.00404c5c
je 0x4a6124
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00404a9c
mov edx, dword [ebp - 0xc]
mov eax, 0x4a68b0
call fcn.00404e58
mov edx, eax
dec edx
lea ecx, [ebp - 0x278]
mov eax, dword [ebp - 0xc]
call fcn.004344c4
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0xc]
call fcn.00404944
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4ac]
call fcn.0048adfc
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x260]
mov eax, ebx
call fcn.00499b70
test al, al
jne 0x4a607f
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x4ac]
mov eax, ebx
call fcn.0048adfc
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4ac]
mov edx, dword [eax]
call dword [edx + 0xcc]
inc eax
jne 0x4a618d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4ac]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x51]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x52]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x53]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x54]
mov ecx, 1
xor edx, edx
call fcn.0042de88
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [eax + 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x55]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x3d]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [eax + 0x39]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2b04
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2b2c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2b54
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2b7c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2ae0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
mov eax, dword [eax + 0x1a4]
call fcn.00426ac0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
mov eax, dword [eax + 0x17c]
call fcn.00426ac0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2bc8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x474]
call fcn.004a2c10
mov eax, dword [ebp - 0x10]
lea ebx, [eax + 0x20]
xor edx, edx
mov dl, byte [ebx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov dl, byte [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
lea edx, [ebp - 0x280]
mov eax, dword [ebx + 4]
call fcn.004092ec
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 0x27c]
call fcn.00404ab8
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.00488c94
mov eax, dword [ebx + 4]
call fcn.004b25e8
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d4]
call fcn.00441810
xor edx, edx
mov dl, byte [ebx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
xor edx, edx
mov dl, byte [ebx + 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.004092ec
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 0x284]
call fcn.00404ab8
mov edx, dword [ebp - 0x284]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f0]
call fcn.00488c94
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [eax + 0x35]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x384]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x36]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x388]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x37]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x394]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x81]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x82]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c8]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x3a]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x3b]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
lea eax, [ebp - 0x28c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1c]
call fcn.00404ab8
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b4]
call fcn.00488c94
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x18]
call fcn.00404ab8
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b8]
call fcn.00488c94
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c8]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [eax + 0x2d]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c4]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x30]
call fcn.00404ab8
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
call fcn.00488c94
mov dl, 1
mov eax, dword [0x4184c8]
call fcn.0040332c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a660c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00404698
mov ecx, eax
mov edx, 0x4a68c0
mov eax, 0x4a68e0
call fcn.0041a594
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4a65f6
inc ebx
xor esi, esi
lea ecx, [ebp - 0x29c]
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
call fcn.00404ab8
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
xor ecx, ecx
mov edi, dword [eax]
call dword [edi + 0x13c]
inc esi
dec ebx
jne 0x4a65b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6613
mov eax, dword [ebp - 8]
call fcn.0040335c
ret