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

Disassembly:
sub esp, 0x2c4
push ebx
push ebp
mov ebp, dword [esp + 0x2d0]
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 4]
mov esi, ecx
cmp eax, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], edi
je 0x4a5490
push eax
call fcn.00529d00
add esp, 4
mov dword [ebp + 4], edi
push 5
mov ecx, esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
call fcn.004a52b0
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x28], ebx
je 0x4a58a6
mov eax, dword [esp + 0x2dc]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x4a54d1
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov dword [esp + 0x20], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov word [esp + 0xcc], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x2e0]
test eax, eax
je 0x4a5514
push 0
lea ecx, [esp + 0xd0]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
call fcn.0048a9e0
add esp, 0x14
lea edx, [esp + 0xcc]
push edx
call fcn.00421d8c
add esp, 4
test eax, eax
jbe 0x4a5536
mov dword [esp + 0x1c], 1
jmp 0x4a5536
mov esi, dword [esp + 0x24]
mov ecx, dword [ebx + 0x44]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, 0xfffffffe
je 0x4a5554
cmp eax, esi
jne 0x4a587a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a5580
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4a587a
lea edx, [esp + 0xcc]
push eax
push edx
call fcn.004b77bd
add esp, 8
test eax, eax
jne 0x4a587a
mov edx, dword [ebx + 0x4c]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
add eax, edx
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x80], edx
mov edx, dword [ebx + 0x80]
mov dword [esp + 0x8c], edx
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x94], edx
mov edx, dword [ebx + 0x8c]
mov dword [esp + 0x98], edx
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x9c], edx
mov edx, dword [ebx + 0x94]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x34], esi
mov esi, dword [ebx + 0x34]
mov dword [esp + 0xa0], edx
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x58], ecx
mov dword [esp + 0xa4], edx
mov edx, dword [ebx + 0x9c]
mov dword [esp + 0x5c], eax
adc ecx, esi
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0xa8], edx
mov edx, dword [ebx + 0xa0]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x64]
mov dword [esp + 0xac], edx
mov edx, dword [ebx + 0xa4]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0xb0], edx
mov edx, dword [ebx + 0xa8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0xb4], edx
mov edx, dword [ebx + 0xac]
mov dword [esp + 0x84], ecx
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0xb8], edx
mov edx, dword [ebx + 0xb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0xbc], edx
mov edx, dword [ebx + 0xb4]
shr ecx, 0xa
shr eax, 0xa
mov dword [esp + 0x50], esi
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], esi
inc esi
cmp esi, edi
jne 0x4a5728
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x4a571d
push eax
mov dword [esp + 0x18], ecx
call fcn.00529d00
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x4a5858
mov edx, dword [ebp + 4]
cmp edx, edi
jne 0x4a5762
lea edi, [esi + esi*4]
shl edi, 5
push edi
call fcn.00529cd7
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
jmp 0x4a5858
mov edi, dword [ebp + 0xc]
cmp esi, edi
jg 0x4a57a7
cmp ecx, esi
jge 0x4a5797
mov eax, esi
lea edi, [ecx + ecx*4]
sub eax, ecx
shl edi, 5
lea ecx, [eax + eax*4]
add edi, edx
shl ecx, 5
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], esi
jmp 0x4a5858
jle 0x4a579f
sub ecx, esi
mov dword [esp + 0x14], ecx
mov dword [ebp + 8], esi
jmp 0x4a5858
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a57d1
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4a57c5
mov eax, 4
jmp 0x4a57d1
cmp eax, 0x400
jle 0x4a57d1
mov eax, 0x400
add eax, edi
cmp esi, eax
jge 0x4a57dd
mov dword [esp + 0x18], eax
jmp 0x4a57e3
mov dword [esp + 0x18], esi
mov eax, esi
lea eax, [eax + eax*4]
shl eax, 5
push eax
call fcn.00529cd7
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx + ecx*4]
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
lea esi, [ecx + 1]
lea edi, [edx + edx*4]
mov ecx, esi
sub ecx, edx
shl edi, 5
lea ecx, [ecx + ecx*4]
add edi, eax
shl ecx, 5
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call fcn.00529d00
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [ebp + 4], ecx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x10]
mov ecx, 0x28
lea esi, [esp + 0x2c]
mov dword [esp + 0x10], 1
lea edi, [eax + eax*4]
mov eax, dword [ebp + 4]
shl edi, 5
add edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x4a5888
add ebx, eax
jne 0x4a5532
mov eax, dword [esp + 0x28]
push eax
call fcn.00529d00
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c4
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c4
ret 0xc