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

Disassembly:
sub esp, 0x3c
mov edx, dword [esp + 0xa4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0x9c]
test edx, edx
mov dword [esp + 0x2c], eax
jl 0x4f63f6
mov ecx, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x60]
inc ecx
push esi
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x6c]
cmp eax, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], ecx
jne 0x4f5b28
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4f5b28
mov dword [esp + 0xa8], esi
mov dword [esp + 0x10], ecx
jmp 0x4f5b3d
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x4f5d6f
mov esi, dword [edi + 4]
mov eax, dword [edi]
xor edx, edx
add esi, eax
mov dl, byte [ebx]
xor eax, eax
imul esi, edx
mov edx, dword [esp + 0x58]
mov al, byte [edx]
mov edx, dword [esp + 0x68]
imul eax, esi
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edx + 1]
mov edx, dword [esp + 0x58]
imul eax, dword [edi + 8]
mov dword [esp + 0x68], eax
add esi, eax
xor eax, eax
mov al, byte [edx + ebp]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x68]
add edx, eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
add eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
xor eax, eax
mov al, byte [edx]
mov edx, eax
mov eax, dword [esp + 0x58]
imul eax, edx
mov edx, dword [esp + 0x5c]
add esi, eax
mov dl, byte [edx]
and edx, 0xff
mov dword [esp + 0x58], edx
imul edx, eax
mov eax, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edx + 1]
mov edx, dword [esp + 0x5c]
imul eax, dword [edi + 0x14]
mov dword [esp + 0x68], eax
add esi, eax
xor eax, eax
mov al, byte [edx + ebp]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x68]
add edx, eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x18]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
imul eax, edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x68], eax
add esi, eax
xor eax, eax
mov al, byte [edx]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x68]
add edx, eax
xor eax, eax
mov al, byte [ecx + 1]
mov dword [esp + 0x14], edx
imul eax, dword [edi + 0x20]
add esi, eax
mov dword [esp + 0x68], eax
test esi, esi
jle 0x4f5cdb
mov edx, dword [esp + 0xa8]
xor eax, eax
mov al, byte [edx + ebp]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x68]
add eax, edx
imul eax, dword [esp + 0x90]
cdq
idiv esi
mov edx, dword [esp + 0x88]
test edx, edx
je 0x4f5c7d
mov ecx, dword [esp + 0x8c]
sar eax, cl
mov ecx, dword [esp + 0x10]
jmp 0x4f5c85
cdq
idiv dword [esp + 0x84]
add eax, dword [esp + 0xa4]
cmp eax, 0xff
jle 0x4f5c9a
mov eax, 0xff
jmp 0x4f5ca0
test eax, eax
jge 0x4f5ca0
xor eax, eax
cmp dword [esp + 0xa0], 0x100
jne 0x4f5cb5
mov edx, dword [esp + 0x54]
mov byte [edx], al
jmp 0x4f5ce2
sub eax, dword [esp + 0x58]
imul eax, dword [esp + 0xa0]
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 8
add al, byte [edx]
mov edx, dword [esp + 0x54]
mov byte [edx], al
jmp 0x4f5ce2
mov eax, dword [esp + 0x54]
mov byte [eax], 0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x64]
add edx, ebp
test eax, eax
mov dword [esp + 0x20], edx
je 0x4f5d6f
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4f5d10
mov ecx, dword [esp + 0x98]
sar esi, cl
mov ecx, dword [esp + 0x10]
mov eax, esi
jmp 0x4f5d1a
mov eax, esi
cdq
idiv dword [esp + 0x90]
cmp eax, 0xff
jle 0x4f5d28
mov eax, 0xff
jmp 0x4f5d2e
test eax, eax
jge 0x4f5d2e
xor eax, eax
cmp dword [esp + 0xa0], 0x100
je 0x4f5d61
mov esi, dword [esp + 0x6c]
mov dl, byte [esi]
and edx, 0xff
sub eax, edx
imul eax, dword [esp + 0xa0]
cdq
and edx, 0xff
add eax, edx
mov dl, byte [esi]
sar eax, 8
add al, dl
mov edx, dword [esp + 0x64]
mov byte [edx], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
cmp edx, eax
jge 0x4f6185
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4f5efd
mov esi, dword [esp + 0x50]
xor edx, edx
xor eax, eax
mov dl, byte [esi + 2]
mov al, byte [esi]
mov dword [esp + 0x2c], edx
xor edx, edx
mov dl, byte [ecx + 2]
mov dword [esp + 0x44], eax
mov dword [esp + 0x68], edx
xor edx, edx
mov dl, byte [ebx + 2]
mov dword [esp + 0x40], edx
xor edx, edx
mov dl, byte [ecx]
mov dword [esp + 0x14], edx
xor edx, edx
mov dl, byte [ebx]
mov dword [esp + 0x58], edx
mov edx, dword [edi]
mov dword [esp + 0x30], edx
xor edx, edx
mov dl, byte [ebx + 1]
mov dword [esp + 0x3c], edx
xor edx, edx
mov dl, byte [ecx + 1]
mov ecx, dword [esp + 0x2c]
mov esi, edx
mov edx, dword [esp + 0x3c]
add ecx, edx
add esi, ecx
mov ecx, dword [esp + 0x40]
add esi, eax
mov eax, dword [esp + 0x68]
imul esi, dword [edi + 4]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x58]
add edx, eax
xor eax, eax
imul edx, dword [esp + 0x30]
add esi, edx
mov edx, dword [esp + 0x50]
mov al, byte [edx + 1]
mov edx, dword [esp + 0x1c]
imul eax, dword [edi + 0x10]
add esi, eax
xor eax, eax
mov al, byte [edx + ebp*2]
imul eax, ecx
xor ecx, ecx
mov cl, byte [edx]
add edx, ebp
imul ecx, dword [esp + 0x58]
add eax, ecx
mov ecx, dword [esp + 0xa8]
inc ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], ebx
xor ebx, ebx
mov bl, byte [ecx]
xor edx, edx
mov dl, byte [ecx + ebp*2]
imul ebx, dword [esp + 0x14]
imul edx, dword [esp + 0x68]
add ebx, eax
mov eax, dword [esp + 0x10]
add ebx, edx
mov edx, ecx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
lea ecx, [eax + 1]
xor eax, eax
mov al, byte [ebx + ebp*2]
add edx, ebp
imul eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0xa8], edx
mov bl, byte [ecx]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cl, byte [edx]
xor edx, edx
imul ebx, ecx
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov ebx, dword [esp + 0x58]
mov dl, byte [ecx]
xor ecx, ecx
mov cl, byte [ebx]
imul edx, ecx
add eax, edx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [edx]
add edx, ebp
imul ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x30]
imul eax, dword [edi + 4]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov dl, byte [edx]
add eax, ecx
mov ecx, dword [esp + 0x50]
and edx, 0xff
inc ecx
mov dword [esp + 0x58], edx
xor edx, edx
mov dl, byte [ecx]
mov dword [esp + 0x50], ecx
imul edx, dword [esp + 0x58]
imul edx, dword [edi + 0x10]
add eax, edx
jmp 0x4f6052
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov dl, byte [ebx]
xor eax, eax
mov esi, edx
mov al, byte [ecx]
imul esi, dword [edi]
add ecx, ebp
imul eax, esi
mov dword [esp + 0x1c], ecx
inc ebx
xor ecx, ecx
mov cl, byte [ebx]
mov edx, ecx
mov ecx, dword [edi + 4]
imul ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x68], ecx
add esi, ecx
xor ecx, ecx
mov cl, byte [edx]
imul ecx, dword [esp + 0x68]
add eax, ecx
xor ecx, ecx
mov cl, byte [ebx + 1]
imul ecx, dword [edi + 8]
mov dword [esp + 0x68], ecx
add esi, ecx
xor ecx, ecx
mov cl, byte [edx + ebp]
mov edx, dword [esp + 0x50]
imul ecx, dword [esp + 0x68]
add eax, ecx
xor ecx, ecx
mov cl, byte [edx]
mov edx, ecx
mov ecx, dword [edi + 0xc]
imul ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], ecx
add esi, ecx
xor ecx, ecx
mov cl, byte [edx]
imul ecx, dword [esp + 0x68]
add eax, ecx
mov ecx, edx
add ecx, ebp
xor edx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
mov dl, byte [ecx]
mov ecx, dword [edi + 0x10]
imul ecx, edx
mov edx, dword [esp + 0x18]
add esi, ecx
mov dl, byte [edx]
and edx, 0xff
mov dword [esp + 0x58], edx
imul edx, ecx
add eax, edx
mov edx, dword [esp + 0x50]
xor ecx, ecx
mov cl, byte [edx + 1]
mov edx, dword [esp + 0x18]
imul ecx, dword [edi + 0x14]
mov dword [esp + 0x68], ecx
add esi, ecx
xor ecx, ecx
mov cl, byte [edx + ebp]
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0x68]
add eax, ecx
xor ecx, ecx
mov cl, byte [edx]
mov edx, ecx
mov ecx, dword [edi + 0x18]
imul ecx, edx
mov dword [esp + 0x68], ecx
add esi, ecx
mov edx, dword [esp + 0xa8]
xor ecx, ecx
mov cl, byte [edx]
imul ecx, dword [esp + 0x68]
add eax, ecx
mov ecx, edx
add ecx, ebp
xor edx, edx
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov dl, byte [ecx]
mov ecx, dword [edi + 0x1c]
imul ecx, edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x68], ecx
add esi, ecx
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0x68]
add eax, ecx
xor ecx, ecx
mov cl, byte [edx + 1]
mov edx, dword [esp + 0xa8]
imul ecx, dword [edi + 0x20]
mov dword [esp + 0x68], ecx
add esi, ecx
xor ecx, ecx
mov cl, byte [edx + ebp]
imul ecx, dword [esp + 0x68]
add eax, ecx
test esi, esi
jle 0x4f60d4
imul eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
cdq
idiv esi
test ecx, ecx
je 0x4f6077
mov ecx, dword [esp + 0x8c]
sar eax, cl
jmp 0x4f607f
cdq
idiv dword [esp + 0x84]
add eax, dword [esp + 0xa4]
cmp eax, 0xff
jle 0x4f6094
mov eax, 0xff
jmp 0x4f609a
test eax, eax
jge 0x4f609a
xor eax, eax
mov ecx, dword [esp + 0xa0]
cmp ecx, 0x100
jne 0x4f60b1
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
jmp 0x4f60db
sub eax, dword [esp + 0x58]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 8
mov cl, byte [edx]
add al, cl
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
jmp 0x4f60db
mov edx, dword [esp + 0x20]
mov byte [edx], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add ecx, ebp
test eax, eax
mov dword [esp + 0x20], ecx
je 0x4f6172
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4f6109
mov ecx, dword [esp + 0x98]
sar esi, cl
mov eax, esi
jmp 0x4f6113
mov eax, esi
cdq
idiv dword [esp + 0x90]
cmp eax, 0xff
jle 0x4f6121
mov eax, 0xff
jmp 0x4f6127
test eax, eax
jge 0x4f6127
xor eax, eax
cmp dword [esp + 0xa0], 0x100
jne 0x4f6141
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x4f6172
mov ecx, dword [esp + 0x50]
mov cl, byte [ecx]
mov edx, ecx
and edx, 0xff
sub eax, edx
imul eax, dword [esp + 0xa0]
cdq
and edx, 0xff
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, 8
add dl, cl
mov byte [eax], dl
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [esp + 0x34], eax
jne 0x4f5d8b
mov eax, dword [esp + 0xac]
test eax, eax
je 0x4f637e
xor eax, eax
xor edx, edx
mov al, byte [ebx]
mov esi, eax
mov eax, dword [esp + 0x1c]
imul esi, dword [edi]
mov dl, byte [eax]
mov eax, dword [edi + 8]
add eax, dword [edi + 4]
imul edx, esi
mov dword [esp + 0x58], eax
xor eax, eax
mov al, byte [ebx + 1]
mov ebx, eax
mov eax, dword [esp + 0x58]
imul eax, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
add esi, eax
xor eax, eax
mov al, byte [ebx + ebp]
mov ebx, dword [esp + 0x50]
imul eax, dword [esp + 0x68]
add edx, eax
xor eax, eax
mov al, byte [ebx]
mov ebx, eax
mov eax, dword [edi + 0xc]
imul eax, ebx
mov ebx, dword [esp + 0x18]
add esi, eax
mov bl, byte [ebx]
mov byte [esp + 0x48], bl
and ebx, 0xff
mov dword [esp + 0x58], ebx
imul ebx, eax
mov eax, dword [edi + 0x14]
add edx, ebx
mov ebx, dword [edi + 0x10]
add eax, ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
xor eax, eax
mov al, byte [ebx + 1]
mov ebx, eax
mov eax, dword [esp + 0x68]
imul eax, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
add esi, eax
xor eax, eax
mov al, byte [ebx + ebp]
imul eax, dword [esp + 0x68]
add edx, eax
xor eax, eax
mov al, byte [ecx]
mov ebx, eax
mov eax, dword [edi + 0x18]
imul eax, ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x68], eax
add esi, eax
xor eax, eax
mov al, byte [ebx]
mov ebx, dword [edi + 0x20]
imul eax, dword [esp + 0x68]
add edx, eax
mov eax, dword [edi + 0x1c]
add ebx, eax
xor eax, eax
mov al, byte [ecx + 1]
imul ebx, eax
add esi, ebx
test esi, esi
jle 0x4f6300
mov ecx, dword [esp + 0xa8]
xor eax, eax
mov al, byte [ecx + ebp]
mov ecx, dword [esp + 0x88]
imul eax, ebx
add eax, edx
imul eax, dword [esp + 0x90]
cdq
idiv esi
test ecx, ecx
je 0x4f62a5
mov ecx, dword [esp + 0x8c]
sar eax, cl
jmp 0x4f62ad
cdq
idiv dword [esp + 0x84]
add eax, dword [esp + 0xa4]
cmp eax, 0xff
jle 0x4f62c2
mov eax, 0xff
jmp 0x4f62c8
test eax, eax
jge 0x4f62c8
xor eax, eax
mov ecx, dword [esp + 0xa0]
cmp ecx, 0x100
jne 0x4f62df
mov edx, dword [esp + 0x20]
mov byte [edx], al
jmp 0x4f6307
sub eax, dword [esp + 0x58]
imul eax, ecx
mov cl, byte [esp + 0x48]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, cl
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
jmp 0x4f6307
mov edx, dword [esp + 0x20]
mov byte [edx], 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4f637e
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4f632b
mov ecx, dword [esp + 0x98]
sar esi, cl
mov ecx, dword [esp + 0x24]
mov eax, esi
jmp 0x4f6335
mov eax, esi
cdq
idiv dword [esp + 0x90]
cmp eax, 0xff
jle 0x4f6343
mov eax, 0xff
jmp 0x4f6349
test eax, eax
jge 0x4f6349
xor eax, eax
cmp dword [esp + 0xa0], 0x100
je 0x4f637c
mov edx, dword [esp + 0x50]
mov bl, byte [edx]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, dword [esp + 0xa0]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, bl
mov byte [ecx], al
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
add eax, edx
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
add ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x58], ecx
add edx, eax
add esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xb4]
inc eax
cmp eax, edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], eax
jle 0x4f5ae8
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x3c
ret