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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x94
mov ebx, eax
mov ebp, dword [ebx + 4]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x84], ebp
dec ebp
shl ebp, 5
add ebp, dword [ebx + 8]
mov edx, dword [ebp]
xor eax, eax
mov ecx, dword [ebp]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x74], ecx
test edi, edi
jbe 0x508a7c
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x48], ebp
lea edx, [eax*8]
lea edx, [edx + eax*4]
mov ebx, dword [edx + ecx]
test ebx, ebx
je 0x5092c8
lea esi, [eax + 1]
cmp esi, edi
jae 0x508a72
lea eax, [esi*8]
lea edx, [edi*8]
lea eax, [eax + esi*4]
lea ebp, [edx + edi*4]
nop
lea esi, [esi]
mov edx, dword [eax + ecx]
cmp ebx, edx
je 0x509280
add eax, 0xc
cmp eax, ebp
jb 0x508a60
mov eax, esi
cmp esi, edi
jb 0x508a2b
mov ebp, dword [esp + 0x48]
mov eax, dword [0x606064]
mov dword [esp], 0x18
call dword [eax + pe_nt_image_headers32]
test eax, eax
je 0x509274
xor edx, edx
mov dword [eax + 0x14], ebp
mov dword [eax + 0xc], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 8], 0x10
mov edx, dword [ebp + 0x1c]
test eax, eax
mov dword [edx + 8], eax
je 0x509240
xor ebx, ebx
mov ecx, dword [ebp + 4]
test ecx, ecx
jbe 0x509230
mov eax, dword [esp + 0x74]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x50], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + ebx*4]
cmp eax, 0xffffffff
je 0x508e4d
mov edx, dword [esp + 0x58]
shl eax, 5
mov esi, dword [ebp]
mov dword [esp + 0x60], eax
mov edx, dword [edx + 8]
lea edi, [ebx*8]
mov dword [esp + 0x68], edx
mov esi, dword [esi + 0x30]
mov edx, dword [edx + eax + 0x1c]
lea edi, [edi + ebx*4]
mov dword [esp + 0x6c], esi
xor eax, eax
mov edx, dword [edx + 8]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x70], edi
mov edi, dword [edx]
test edi, edi
jbe 0x508e4d
xor eax, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
cmp edx, edi
jae 0x508b60
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x5c]
add esi, dword [edx + 0x10]
jmp 0x508b62
xor esi, esi
mov edx, dword [esi]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x64], edx
jbe 0x508bba
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x64]
mov ebp, dword [edx + 0x24]
lea esi, [esi]
lea edx, [ecx*8]
lea edx, [edx + ecx*4]
cmp ebx, dword [ebp + edx]
je 0x5090f0
inc ecx
cmp ecx, eax
jae 0x5090e0
lea edx, [ecx*8]
lea edx, [edx + ecx*4]
cmp ebx, dword [ebp + edx]
je 0x5090d0
inc ecx
cmp ecx, eax
jb 0x508b80
mov dword [esp + 0x64], ebx
mov ebp, 0xffffffff
cmp ebp, 0xffffffff
jne 0x508be0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [edx + ecx + 8]
jmp 0x508bef
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [edx + ecx + 4]
mov edx, dword [edx + ebp*4]
test edx, edx
je 0x508db0
mov ecx, dword [esi + 4]
cmp ecx, 1
je 0x508f70
cmp edx, 2
jne 0x508e1f
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov ebx, dword [edx + ecx + 0x1c]
mov edx, dword [edx + ecx]
mov dword [esp + 0x54], edx
mov edx, dword [ebx + 8]
mov ecx, dword [edx]
test ecx, ecx
je 0x508c56
mov edx, dword [edx + 0x10]
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x64]
mov eax, ecx
mov ecx, edx
mov edx, eax
mov eax, ecx
nop
lea esi, [esi]
cmp ebx, dword [eax]
je 0x508f50
add eax, 0x24
dec edx
jne 0x508c40
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x50]
xor edx, edx
test edx, edx
je 0x508e1f
mov eax, dword [edx + 8]
dec eax
mov dword [edx + 8], eax
je 0x508c90
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + edx + 0x1c]
mov edx, eax
mov eax, dword [ecx + 0x20]
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], edx
mov edi, dword [edx]
jmp 0x508e1f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + ecx + 0x1c]
mov eax, dword [eax + 8]
call fcn.00508990
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
xor esi, esi
mov eax, dword [eax + edx + 4]
test eax, eax
mov dword [esp + 0x5c], eax
jbe 0x508f30
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov eax, dword [ebx + eax + 8]
mov edi, dword [eax + esi*4]
cmp edi, 0xffffffff
je 0x508d74
mov eax, dword [esp + 0x60]
lea edx, [esi*8]
mov ecx, dword [esp + 0x54]
mov eax, dword [ebx + eax]
lea edx, [edx + esi*4]
mov ebp, dword [ecx + 0x20]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
xor edx, edx
test ebp, ebp
jbe 0x508d25
mov eax, ecx
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x64]
mov ecx, dword [eax + 0x24]
xor eax, eax
mov esi, esi
cmp ebx, dword [ecx + eax]
je 0x508f1a
inc edx
add eax, 0xc
cmp edx, ebp
jb 0x508d10
mov ebx, dword [esp + 0x68]
mov ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x508d40
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + edx + 8]
jmp 0x508d4f
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + edx + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x508d74
shl edi, 5
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
add edi, dword [eax + 8]
mov edx, edi
call fcn.00509310
mov eax, dword [esp + 0x60]
mov eax, dword [ebx + eax + 4]
mov dword [esp + 0x5c], eax
inc esi
mov eax, dword [esp + 0x5c]
cmp esi, eax
jb 0x508cc2
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x68], ebx
mov ebx, dword [ebx + eax + 0x1c]
mov eax, dword [edx + 0x20]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x5c], ebx
mov edi, dword [ebx]
jmp 0x508e1f
mov eax, dword [esp + 0x48]
mov edi, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov esi, dword [esi + 4]
mov ebp, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x508de4
mov eax, dword [ebp + 0x10]
mov edx, ecx
mov ebx, dword [esp + 0x64]
cmp ebx, dword [eax]
je 0x5090c0
add eax, 0x24
dec edx
jne 0x508dd6
xor edx, edx
test edx, edx
je 0x509030
cmp esi, 1
je 0x509020
mov eax, edx
test eax, eax
je 0x508fec
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + edx + 0x1c]
mov edx, eax
mov eax, dword [ecx + 0x20]
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], edx
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
add edx, 0x24
inc ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
cmp ecx, edi
jb 0x508b3c
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x80]
mov ecx, dword [ebp + 4]
inc ebx
cmp ebx, ecx
jb 0x508ad3
mov edx, dword [esp + 0x50]
xor eax, eax
test edx, edx
mov dword [esp + 0x80], eax
jbe 0x508ef5
xor ecx, ecx
mov dword [esp + 0x48], ebp
mov edi, dword [esp + 0x74]
mov eax, edx
mov ebp, dword [esp + 0x80]
mov edx, dword [edi + 0x28]
mov esi, dword [edx + ebp*4]
test esi, esi
je 0x508ee9
mov eax, dword [esp + 0x48]
mov edx, dword [edi + 0x24]
mov eax, dword [eax + 0x1c]
mov ebx, dword [edx + ecx]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
mov edx, dword [edx]
test edx, edx
mov dword [esp + 0x54], edx
je 0x508ec1
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x10]
cmp ebx, dword [eax]
je 0x509224
add eax, 0x24
dec edx
jne 0x508eb3
mov eax, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x54], eax
test edx, edx
je 0x509150
cmp esi, 1
je 0x509134
mov eax, edx
test eax, eax
je 0x509100
mov eax, dword [edi + 0x20]
inc ebp
add ecx, 0xc
cmp ebp, eax
jb 0x508e7e
mov ebp, dword [esp + 0x48]
add ebp, 0xffffffe0
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x84], eax
jne 0x508a11
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebx, dword [esp + 0x68]
mov ecx, edx
jmp 0x508d2a
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + edx + 0x1c]
mov edx, eax
mov eax, dword [ecx + 0x20]
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], edx
mov edi, dword [edx]
jmp 0x508e1f
mov ecx, eax
mov eax, dword [esp + 0x50]
mov edx, ecx
mov dword [esp + 0x64], ebx
jmp 0x508c58
cmp edx, 1
je 0x508e1f
mov dword [esp], 0x1d
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x38], 1
mov eax, dword [esi]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
mov eax, dword [eax]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x4c], esi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ebp, dword [ebp]
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
mov edx, dword [edx + ecx]
mov dword [esp + 0x14], edx
call fcn.004f73c0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
mov eax, 0x1d
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x30], 1
mov dword [esp], 0x20
call fcn.004f73c0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
mov eax, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [edx + 4], 1
mov dword [edx + 0x20], edi
jmp 0x508df7
mov eax, dword [ebp + 4]
cmp ecx, eax
jne 0x509061
add eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, eax
shl ecx, 2
mov dword [ebp + 4], eax
mov dword [esp], edx
lea ecx, [ecx + ecx*8]
mov dword [esp + 4], ecx
mov eax, dword [0x606064]
call dword [eax + 0x138]
test eax, eax
je 0x5090b0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp]
mov edx, dword [ebp + 0x10]
mov ecx, 1
add ecx, eax
shl eax, 2
mov ebx, dword [esp + 0x64]
mov dword [ebp], ecx
lea eax, [eax + eax*8]
mov ecx, dword [esp + 0x5c]
mov dword [edx + eax], ebx
mov dword [edx + eax + 0x20], edi
mov dword [edx + eax + 0x1c], 0xffffffff
mov dword [edx + eax + 0x14], ebp
mov dword [edx + eax + 4], esi
xor ebx, ebx
mov dword [edx + eax + 8], ecx
mov dword [edx + eax + 0x10], ebx
mov dword [edx + eax + 0xc], ebx
mov dword [edx + eax + 0x18], ebx
add eax, edx
jmp 0x508df9
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 4], eax
jmp 0x508fec
mov edx, eax
jmp 0x508de6
mov dword [esp + 0x64], ebx
mov ebp, ecx
jmp 0x508bbf
mov dword [esp + 0x64], ebx
jmp 0x508bba
mov dword [esp + 0x64], ebx
mov ebp, ecx
jmp 0x508bbf
mov dword [esp + 0x40], 1
mov dword [esp], 0x20
call fcn.004f73c0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
mov eax, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x48]
mov dword [edx + 4], 1
mov dword [edx + 0x20], eax
jmp 0x508edc
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [eax + 4]
cmp edx, eax
jne 0x50919b
mov edx, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
add eax, dword [edx + 8]
mov ecx, dword [edx + 0x10]
mov dword [edx + 4], eax
shl eax, 2
mov dword [esp], ecx
lea eax, [eax + eax*8]
mov dword [esp + 4], eax
mov eax, dword [0x606064]
call dword [eax + 0x138]
test eax, eax
mov ecx, dword [esp + 0x7c]
je 0x509210
mov edx, dword [esp + 0x50]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x88], edi
mov edi, dword [eax]
mov dword [esp + 0x8c], ebp
mov ebp, edi
shl ebp, 2
inc edi
mov dword [eax], edi
mov edi, dword [eax + 0x10]
lea ebp, [ebp + ebp*8]
mov dword [edi + ebp], ebx
mov dword [edi + ebp + 0x14], eax
mov dword [edi + ebp + 0x1c], 0xffffffff
mov dword [edi + ebp + 8], edx
mov dword [edi + ebp + 4], esi
xor eax, eax
mov edx, dword [esp + 0x48]
mov dword [edi + ebp + 0x10], eax
mov dword [edi + ebp + 0x20], edx
mov dword [edi + ebp + 0xc], eax
mov dword [edi + ebp + 0x18], eax
add ebp, edi
mov eax, ebp
mov edi, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
jmp 0x508ede
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
sub edx, ecx
mov dword [eax + 4], edx
jmp 0x509100
mov edx, eax
jmp 0x508ecb
mov eax, dword [esp + 0x74]
mov edx, dword [eax + 0x20]
jmp 0x508e5a
mov dword [esp + 0x28], 1
mov dword [esp], 0x20
call fcn.004f73c0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
mov eax, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret
xor eax, eax
jmp 0x508aad
mov ebp, dword [esp + 0x48]
mov dword [esp], 0x1e
mov dword [esp + 0x20], 1
mov ebp, dword [ebp]
mov ebp, dword [ebp]
mov dword [esp + 4], ebp
mov edx, dword [edx]
mov dword [esp + 8], edx
call fcn.004f73c0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
mov eax, 0x1e
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [esp + 0x48]
mov dword [esp], 0x1f
mov dword [esp + 0x18], 1
mov ebp, dword [ebp]
mov ebp, dword [ebp]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call fcn.004f73c0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
mov eax, 0x1f
pop ebx
pop ebp
pop esi
pop edi
ret