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

Disassembly:
sub esp, 0xb8
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
push esi
push edi
xor edi, edi
mov eax, dword [ebp]
mov esi, ecx
cmp eax, edi
mov dword [esp + 0x20], esi
je 0x1004e5ec
push eax
call fcn.10022daf
add esp, 4
mov dword [ebp], edi
push 5
mov ecx, esi
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
call fcn.1004e410
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
jne 0x1004e614
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb8
ret 8
mov edi, dword [esp + 0xd0]
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x1004e638
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov edi, eax
mov ecx, dword [ebx + 0x44]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
cmp edi, 0xfffffffe
mov edx, eax
je 0x1004e652
cmp edi, edx
jne 0x1004e923
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], edx
add eax, edx
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x60]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x80], edx
mov edx, dword [ebx + 0x80]
mov dword [esp + 0x88], edx
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x90], edx
mov edx, dword [ebx + 0x8c]
mov dword [esp + 0x94], edx
mov edx, dword [ebx + 0x90]
mov edi, dword [ebx + 0x34]
mov dword [esp + 0x98], edx
mov edx, dword [ebx + 0x94]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x9c], edx
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0xa0], edx
mov edx, dword [ebx + 0x9c]
mov dword [esp + 0x54], ecx
adc ecx, edi
mov dword [esp + 0xa4], edx
mov edx, dword [ebx + 0xa0]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0xa8], edx
mov edx, dword [ebx + 0xa4]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0xac], edx
mov edx, dword [ebx + 0xa8]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0xb0], edx
mov edx, dword [ebx + 0xac]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0xb4], edx
mov edx, dword [ebx + 0xb0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0xb8], edx
mov edx, dword [ebx + 0xb4]
mov dword [esp + 0x4c], edi
shr ecx, 0xa
shr eax, 0xa
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov esi, ecx
mov dword [esp + 0x1c], esi
lea edi, [esi + 1]
test edi, edi
jne 0x1004e7fd
test eax, eax
je 0x1004e7f0
push eax
mov dword [esp + 0x14], ecx
call fcn.10022daf
add esp, 4
mov dword [ebp], 0
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
jmp 0x1004e905
test eax, eax
jne 0x1004e825
lea eax, [edi + edi*4]
shl eax, 5
push eax
call fcn.10022ea6
push edi
push eax
mov dword [ebp], eax
call fcn.1004f1d0
add esp, 0xc
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
jmp 0x1004e905
cmp edi, dword [ebp + 8]
jg 0x1004e85c
cmp ecx, edi
jge 0x1004e84c
mov edx, edi
sub edx, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, eax
push edx
push ecx
call fcn.1004f1d0
add esp, 8
mov dword [ebp + 4], edi
jmp 0x1004e905
jle 0x1004e854
sub ecx, edi
mov dword [esp + 0x10], ecx
mov dword [ebp + 4], edi
jmp 0x1004e905
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1004e886
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1004e87a
mov eax, 4
jmp 0x1004e886
cmp eax, 0x400
jle 0x1004e886
mov eax, 0x400
mov ecx, dword [ebp + 8]
add eax, ecx
cmp edi, eax
jge 0x1004e895
mov dword [esp + 0x14], eax
jmp 0x1004e89b
mov dword [esp + 0x14], edi
mov eax, edi
lea edx, [eax + eax*4]
shl edx, 5
push edx
call fcn.10022ea6
mov ecx, dword [ebp + 4]
mov esi, dword [ebp]
mov edi, eax
mov dword [esp + 0x14], 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
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
lea esi, [edx + 1]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, eax
push edx
push ecx
call fcn.1004f1d0
mov edx, dword [ebp]
push edx
call fcn.10022daf
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [ebp + 4], esi
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov dword [ebp], eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp]
lea edi, [esi + esi*4]
shl edi, 5
add edi, eax
mov ecx, 0x28
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x1004e931
add ebx, eax
jne 0x1004e638
mov edx, dword [esp + 0x24]
push edx
call fcn.10022daf
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 8