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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0xa0]
push ebx
lea ebx, [eax + eax]
xor eax, eax
test edx, edx
mov dword [esp + 0x2c], eax
jl 0x4fadf0
mov ecx, dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x5c]
inc ecx
push esi
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x68]
cmp eax, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
jne 0x4fa4eb
mov eax, dword [esp + 0xac]
test eax, eax
je 0x4fa4eb
mov dword [esp + 0xa4], esi
mov dword [esp + 0x4c], ecx
jmp 0x4fa500
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xa4], edx
mov dword [esp + 0x4c], eax
mov ecx, eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4fa741
mov esi, dword [edi + 4]
mov eax, dword [edi]
xor edx, edx
add esi, eax
mov dl, byte [ebp]
xor eax, eax
imul esi, edx
mov edx, dword [esp + 0x54]
mov ax, word [edx]
mov edx, dword [esp + 0x64]
imul eax, esi
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edx + 1]
mov edx, dword [esp + 0x54]
imul eax, dword [edi + 8]
mov dword [esp + 0x64], eax
add esi, eax
xor eax, eax
mov ax, word [ebx + edx]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x64]
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 + 0x68]
mov dword [esp + 0x54], eax
xor eax, eax
mov al, byte [edx]
mov edx, eax
mov eax, dword [esp + 0x54]
imul eax, edx
mov edx, dword [esp + 0x58]
add esi, eax
mov dx, word [edx]
and edx, 0xffff
mov dword [esp + 0x54], edx
imul edx, eax
mov eax, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edx + 1]
mov edx, dword [esp + 0x58]
imul eax, dword [edi + 0x14]
mov dword [esp + 0x64], eax
add esi, eax
xor eax, eax
mov ax, word [ebx + edx]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x64]
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 + 0xa4]
mov dword [esp + 0x64], eax
add esi, eax
xor eax, eax
mov ax, word [edx]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x64]
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 + 0x64], eax
test esi, esi
jle 0x4fa6aa
mov edx, dword [esp + 0xa4]
xor eax, eax
mov ax, word [ebx + edx]
mov edx, dword [esp + 0x14]
imul eax, dword [esp + 0x64]
add eax, edx
imul eax, dword [esp + 0x8c]
cdq
idiv esi
mov edx, dword [esp + 0x84]
test edx, edx
je 0x4fa647
mov ecx, dword [esp + 0x88]
sar eax, cl
mov ecx, dword [esp + 0x4c]
jmp 0x4fa64f
cdq
idiv dword [esp + 0x80]
add eax, dword [esp + 0xa0]
cmp eax, 0xffff
jle 0x4fa664
mov eax, 0xffff
jmp 0x4fa66a
test eax, eax
jge 0x4fa66a
xor eax, eax
cmp dword [esp + 0x9c], 0x100
jne 0x4fa680
mov edx, dword [esp + 0x50]
mov word [edx], ax
jmp 0x4fa6b3
sub eax, dword [esp + 0x54]
imul eax, dword [esp + 0x9c]
cdq
and edx, 0xff
add edx, eax
mov eax, dword [esp + 0x58]
sar edx, 8
mov ax, word [eax]
add edx, eax
mov eax, dword [esp + 0x50]
mov word [eax], dx
jmp 0x4fa6b3
mov edx, dword [esp + 0x50]
mov word [edx], 0
mov eax, dword [esp + 0x50]
lea edx, [ebx + eax]
mov eax, dword [esp + 0x60]
test eax, eax
mov dword [esp + 0x20], edx
je 0x4fa741
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4fa6e2
mov ecx, dword [esp + 0x94]
sar esi, cl
mov ecx, dword [esp + 0x4c]
mov eax, esi
jmp 0x4fa6ec
mov eax, esi
cdq
idiv dword [esp + 0x8c]
cmp eax, 0xff
jle 0x4fa6fa
mov eax, 0xff
jmp 0x4fa700
test eax, eax
jge 0x4fa700
xor eax, eax
cmp dword [esp + 0x9c], 0x100
je 0x4fa733
mov esi, dword [esp + 0x68]
mov dl, byte [esi]
and edx, 0xff
sub eax, edx
imul eax, dword [esp + 0x9c]
cdq
and edx, 0xff
add eax, edx
mov dl, byte [esi]
sar eax, 8
add al, dl
mov edx, dword [esp + 0x60]
mov byte [edx], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
cmp edx, eax
jge 0x4fab75
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4fa8d9
mov esi, dword [esp + 0x10]
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 + 0x64], edx
xor edx, edx
mov dl, byte [ebp + 2]
mov dword [esp + 0x40], edx
xor edx, edx
mov dl, byte [ecx]
mov dword [esp + 0x14], edx
xor edx, edx
mov dl, byte [ebp]
mov dword [esp + 0x54], edx
mov edx, dword [edi]
mov dword [esp + 0x30], edx
xor edx, edx
mov dl, byte [ebp + 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 + 0x64]
imul esi, dword [edi + 4]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x54]
add edx, eax
xor eax, eax
imul edx, dword [esp + 0x30]
add esi, edx
mov edx, dword [esp + 0x10]
mov al, byte [edx + 1]
mov edx, dword [esp + 0x1c]
imul eax, dword [edi + 0x10]
add esi, eax
xor eax, eax
mov ax, word [edx + ebx*2]
imul eax, ecx
xor ecx, ecx
mov cx, word [edx]
add edx, ebx
imul ecx, dword [esp + 0x54]
add eax, ecx
mov ecx, dword [esp + 0xa4]
inc ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], ebp
xor ebp, ebp
mov bp, word [ecx]
xor edx, edx
mov dx, word [ecx + ebx*2]
imul ebp, dword [esp + 0x14]
imul edx, dword [esp + 0x64]
add ebp, eax
mov eax, dword [esp + 0x4c]
add ebp, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
lea ebp, [eax + 1]
xor eax, eax
add ecx, ebx
mov ax, word [edx + ebx*2]
xor edx, edx
imul eax, dword [esp + 0x2c]
mov dl, byte [ebp]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xa4], ecx
xor ebp, ebp
mov bp, word [ecx]
xor ecx, ecx
imul edx, ebp
mov ebp, dword [esp + 0x54]
add eax, edx
mov edx, dword [esp + 0x1c]
mov cx, word [edx]
xor edx, edx
mov dl, byte [ebp]
imul ecx, edx
mov edx, dword [esp + 0x18]
add eax, ecx
xor ecx, ecx
mov cx, word [edx]
add edx, ebx
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 dx, word [edx]
add eax, ecx
mov ecx, dword [esp + 0x10]
and edx, 0xffff
inc ecx
mov dword [esp + 0x54], edx
xor edx, edx
mov dl, byte [ecx]
mov dword [esp + 0x10], ecx
imul edx, dword [esp + 0x54]
imul edx, dword [edi + 0x10]
add eax, edx
jmp 0x4faa39
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov al, byte [ebp]
mov esi, eax
xor eax, eax
imul esi, dword [edi]
mov ax, word [ecx]
add ecx, ebx
imul eax, esi
mov dword [esp + 0x1c], ecx
inc ebp
xor ecx, ecx
mov cl, byte [ebp]
mov edx, ecx
mov ecx, dword [edi + 4]
imul ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
add esi, ecx
xor ecx, ecx
mov cx, word [edx]
imul ecx, dword [esp + 0x64]
add eax, ecx
xor ecx, ecx
mov cl, byte [ebp + 1]
imul ecx, dword [edi + 8]
mov dword [esp + 0x64], ecx
add esi, ecx
xor ecx, ecx
mov cx, word [ebx + edx]
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0x64]
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 + 0x64], ecx
add esi, ecx
xor ecx, ecx
mov cx, word [edx]
imul ecx, dword [esp + 0x64]
add eax, ecx
mov ecx, edx
add ecx, ebx
xor edx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov dl, byte [ecx]
mov ecx, dword [edi + 0x10]
imul ecx, edx
mov edx, dword [esp + 0x18]
add esi, ecx
mov dx, word [edx]
and edx, 0xffff
mov dword [esp + 0x54], edx
imul edx, ecx
add eax, edx
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx + 1]
mov edx, dword [esp + 0x18]
imul ecx, dword [edi + 0x14]
mov dword [esp + 0x64], ecx
add esi, ecx
xor ecx, ecx
mov cx, word [ebx + edx]
mov edx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x64]
add eax, ecx
xor ecx, ecx
mov cl, byte [edx]
mov edx, ecx
mov ecx, dword [edi + 0x18]
imul ecx, edx
mov dword [esp + 0x64], ecx
add esi, ecx
mov edx, dword [esp + 0xa4]
xor ecx, ecx
mov cx, word [edx]
imul ecx, dword [esp + 0x64]
add eax, ecx
mov ecx, edx
add ecx, ebx
xor edx, edx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x4c], ecx
mov dl, byte [ecx]
mov ecx, dword [edi + 0x1c]
imul ecx, edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x64], ecx
add esi, ecx
xor ecx, ecx
mov cx, word [edx]
mov edx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x64]
add eax, ecx
xor ecx, ecx
mov cl, byte [edx + 1]
mov edx, dword [esp + 0xa4]
imul ecx, dword [edi + 0x20]
mov dword [esp + 0x64], ecx
add esi, ecx
xor ecx, ecx
mov cx, word [ebx + edx]
imul ecx, dword [esp + 0x64]
add eax, ecx
test esi, esi
jle 0x4faac2
imul eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
cdq
idiv esi
test ecx, ecx
je 0x4faa62
mov ecx, dword [esp + 0x88]
sar eax, cl
jmp 0x4faa6a
cdq
idiv dword [esp + 0x80]
add eax, dword [esp + 0xa0]
cmp eax, 0xffff
jle 0x4faa7f
mov eax, 0xffff
jmp 0x4faa85
test eax, eax
jge 0x4faa85
xor eax, eax
mov ecx, dword [esp + 0x9c]
cmp ecx, 0x100
jne 0x4faa9d
mov ecx, dword [esp + 0x20]
mov word [ecx], ax
jmp 0x4faacb
sub eax, dword [esp + 0x54]
imul eax, ecx
cdq
mov ecx, dword [esp + 0x20]
and edx, 0xff
add edx, eax
mov eax, dword [esp + 0x18]
sar edx, 8
mov ax, word [eax]
add edx, eax
mov word [ecx], dx
jmp 0x4faacb
mov edx, dword [esp + 0x20]
mov word [edx], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add ecx, ebx
test eax, eax
mov dword [esp + 0x20], ecx
je 0x4fab62
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4faaf9
mov ecx, dword [esp + 0x94]
sar esi, cl
mov eax, esi
jmp 0x4fab03
mov eax, esi
cdq
idiv dword [esp + 0x8c]
cmp eax, 0xff
jle 0x4fab11
mov eax, 0xff
jmp 0x4fab17
test eax, eax
jge 0x4fab17
xor eax, eax
cmp dword [esp + 0x9c], 0x100
jne 0x4fab31
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x4fab62
mov ecx, dword [esp + 0x10]
mov cl, byte [ecx]
mov edx, ecx
and edx, 0xff
sub eax, edx
imul eax, dword [esp + 0x9c]
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 + 0x4c]
dec eax
mov dword [esp + 0x34], eax
jne 0x4fa75d
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4fad79
xor eax, eax
xor edx, edx
mov al, byte [ebp]
mov esi, eax
mov eax, dword [esp + 0x1c]
imul esi, dword [edi]
mov dx, word [eax]
mov eax, dword [edi + 8]
add eax, dword [edi + 4]
imul edx, esi
mov dword [esp + 0x54], eax
xor eax, eax
mov al, byte [ebp + 1]
mov ebp, eax
mov eax, dword [esp + 0x54]
imul eax, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
add esi, eax
xor eax, eax
mov ax, word [ebx + ebp]
mov ebp, dword [esp + 0x10]
imul eax, dword [esp + 0x64]
add edx, eax
xor eax, eax
mov al, byte [ebp]
mov ebp, eax
mov eax, dword [edi + 0xc]
imul eax, ebp
mov ebp, dword [esp + 0x18]
add esi, eax
mov bp, word [ebp]
mov dword [esp + 0x4c], ebp
and ebp, 0xffff
mov dword [esp + 0x54], ebp
imul ebp, eax
mov eax, dword [edi + 0x14]
add edx, ebp
mov ebp, dword [edi + 0x10]
add eax, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x64], eax
xor eax, eax
mov al, byte [ebp + 1]
mov ebp, eax
mov eax, dword [esp + 0x64]
imul eax, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x64], eax
add esi, eax
xor eax, eax
mov ax, word [ebx + ebp]
imul eax, dword [esp + 0x64]
add edx, eax
xor eax, eax
mov al, byte [ecx]
mov ebp, eax
mov eax, dword [edi + 0x18]
imul eax, ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x64], eax
add esi, eax
xor eax, eax
mov ax, word [ebp]
mov ebp, dword [edi + 0x20]
imul eax, dword [esp + 0x64]
add edx, eax
mov eax, dword [edi + 0x1c]
add ebp, eax
xor eax, eax
mov al, byte [ecx + 1]
imul ebp, eax
add esi, ebp
test esi, esi
jle 0x4facfc
mov ecx, dword [esp + 0xa4]
xor eax, eax
mov ax, word [ebx + ecx]
mov ecx, dword [esp + 0x84]
imul eax, ebp
add eax, edx
imul eax, dword [esp + 0x8c]
cdq
idiv esi
test ecx, ecx
je 0x4fac9f
mov ecx, dword [esp + 0x88]
sar eax, cl
jmp 0x4faca7
cdq
idiv dword [esp + 0x80]
add eax, dword [esp + 0xa0]
cmp eax, 0xffff
jle 0x4facbc
mov eax, 0xffff
jmp 0x4facc2
test eax, eax
jge 0x4facc2
xor eax, eax
mov ecx, dword [esp + 0x9c]
cmp ecx, 0x100
jne 0x4facda
mov edx, dword [esp + 0x20]
mov word [edx], ax
jmp 0x4fad05
sub eax, dword [esp + 0x54]
imul eax, ecx
mov ecx, dword [esp + 0x4c]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add eax, ecx
mov ecx, dword [esp + 0x20]
mov word [ecx], ax
jmp 0x4fad05
mov edx, dword [esp + 0x20]
mov word [edx], 0
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4fad79
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4fad25
mov ecx, dword [esp + 0x94]
sar esi, cl
mov eax, esi
jmp 0x4fad2f
mov eax, esi
cdq
idiv dword [esp + 0x8c]
cmp eax, 0xff
jle 0x4fad3d
mov eax, 0xff
jmp 0x4fad43
test eax, eax
jge 0x4fad43
xor eax, eax
cmp dword [esp + 0x9c], 0x100
je 0x4fad76
mov ecx, dword [esp + 0x10]
mov cl, byte [ecx]
mov edx, ecx
and edx, 0xff
sub eax, edx
imul eax, dword [esp + 0x9c]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, cl
mov byte [ebp], al
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x58], eax
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x64], ebp
lea edx, [eax + edx*2]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
add edx, eax
add esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xb0]
inc eax
cmp eax, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], eax
jle 0x4fa4ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret